Home

A Java monitor must either extend thread class or implement Runnable interface.

A. True

B. False

You can do it
  1. The break statement is required in the default case of a switch selection structure.
  2. A variable declared inside the for loop control can not be referenced out side the loop.
  3. The import statement is always the first no comment statement in a Java program files.
  4. Which of the following string can be used as mode string for creating a RandomAccessFile object?
  5. For all insert, update, delete, query operations on a database, ResultSet object creation is mandatory.
  6. It is an error to catch the same type of exception in two different catch blocks associated with a particular…
  7. A class may be both abstract and final.
  8. Servlet can have ___________
  9. A final class may not have any abstract method.
  10. In a single Servlet class we can use____________
  11. Which of the following are keywords?
  12. To delete a file, we can use an instance of class file.
  13. Frames and applets cannot be used together in the same program.
  14. A thread can make second thread ineligible for execution by calling the suspend (-) method on second…
  15. Java is fully object oriented programme.
  16. A constructor must always invoke its supper class constructor in its first statement.
  17. Which javadoc tag is used to denote a comment for methods parameters?
  18. It is an error to have a method with the same signature in both the super class and its subclass.
  19. What does the following line of code do?TextField text=new TextField(10);
  20. Which of the following represent legal flow control statements?
  21. If m and n are int type variables, what will be the result of the expression'm % n' when m = -14 and…
  22. When we implement an interface method, it should be declared as public.
  23. Consider the following statements: int x = 10, y = 15; x = ((x < y) ? (y + x) : (y - x); What will…
  24. The modulus operator (%) can be used only with Integer operands.
  25. Any class may be inherited by another class in the same package.
  26. When present, package must be the first no comment statement in the file.
  27. Submit button always fires doPost(...)
  28. class.forName(...) creates an instance of java ODBC driver
  29. Which of the following will produce a value of 22 if x=22.9:
  30. All the bitwise operators have the same level of precedence in Java.