The import statement is always the first no comment statement in a Java program files.
Correct Answer :
Download Objective type questions of
Visit our PDF store
Get all objective type questions of Java Programming MCQ
comments powered by Disqus.
It is perfectly legal to refer to any instance variable inside of a static method.
Which of the following keywords are used to control access to a class member?
Which exception is thrown by the read() method of InputStream class?
Which are the valid ways to create DataInputStream streams?
In the code below, what data types the variable x can have?
A JSP file can be stored_________________
It is perfectly legal to assign a subclass object to a supper class reference.
If you want to assign a value of 99 to the variable year, then which of the following lines can be used…
Two methods cannot have the same name in Java.
When present, package must be the first no comment statement in the file.
Which of the following methods can be used to draw the outline of a square?
Which of the following statements are valid array declarations?
Servlet can have ___________
Which javadoc tag is used to denote a comment for methods parameters?
We can over load methods with differences only in their return type.
We would like to make a member of a class visible in all subclasses regardless of what package they…
A method declared as static can not access non-static class members.
Members of a class specified as private are accessible only to the methods of the class.
putValue(...) method takes _____________________-
What is java -g used for?
A final class may not have any abstract method.
Which key word can protect a class in package from accessibility by the classes outside the package?
Any method in a supper class can be over ridden in its subclass.
The expression (x == y && a<b) is true If either x == y is true or a<b is true.
The name of the RMI compiler is ___________
Which of the following will produce a value of 22 if x=22.9:
The use of protected keyword to a member in a class will restrict its visibility as follows:
A string object can not be modified after it is created.
A catch can have comma-separated multiple arguments.
Join our Chat Group
Join our Twitter Group
Join our Pinterest Group
Join our Facebook Group
Subscribe to our Email Newsletter