A Java monitor must either extend thread class or implement Runnable interface.
Correct Answer :
Download Objective type questions of
Visit our PDF store
Get all objective type questions of Java Programming MCQ
comments powered by Disqus.
The break statement is required in the default case of a switch selection structure.
A variable declared inside the for loop control can not be referenced out side the loop.
The import statement is always the first no comment statement in a Java program files.
Which of the following string can be used as mode string for creating a RandomAccessFile object?
For all insert, update, delete, query operations on a database, ResultSet object creation is mandatory.
It is an error to catch the same type of exception in two different catch blocks associated with a particular…
A class may be both abstract and final.
Servlet can have ___________
A final class may not have any abstract method.
In a single Servlet class we can use____________
Which of the following are keywords?
To delete a file, we can use an instance of class file.
Frames and applets cannot be used together in the same program.
A thread can make second thread ineligible for execution by calling the suspend (-) method on second…
Java is fully object oriented programme.
A constructor must always invoke its supper class constructor in its first statement.
Which javadoc tag is used to denote a comment for methods parameters?
It is an error to have a method with the same signature in both the super class and its subclass.
What does the following line of code do?TextField text=new TextField(10);
Which of the following represent legal flow control statements?
If m and n are int type variables, what will be the result of the expression'm % n' when m = -14 and…
When we implement an interface method, it should be declared as public.
Consider the following statements: int x = 10, y = 15; x = ((x < y) ? (y + x) : (y - x); What will…
The modulus operator (%) can be used only with Integer operands.
Any class may be inherited by another class in the same package.
When present, package must be the first no comment statement in the file.
Submit button always fires doPost(...)
class.forName(...) creates an instance of java ODBC driver
Which of the following will produce a value of 22 if x=22.9:
All the bitwise operators have the same level of precedence in Java.
Join our Chat Group
Join our Twitter Group
Join our Pinterest Group
Join our Facebook Group
Subscribe to our Email Newsletter