When we invoke repaint () for a Component, the AWT invokes the method:

A. draw()

B. update()

C. show()

D. paint()

You can do it
  1. A Java monitor must either extend thread class or implement Runnable interface.
  2. Declaring a method synchronized guarantees that the deadlock cannot occur.
  3. We can over load methods with differences only in their return type.
  4. It is perfectly legal to assign a subclass object to a supper class reference.
  5. executeUpdate automatically updates data because___________
  6. For all insert, update, delete, query operations on a database, ResultSet object creation is mandatory.
  7. Consider the following statements: int x = 10, y = 15; x = ((x < y) ? (y + x) : (y - x); What will…
  8. Which of the following statements are true?
  9. The import statement is always the first no comment statement in a Java program files.
  10. The concept of multiple inheritance is implemented in Java by
  11. Which of the following represent legal flow control statements?
  12. EJBs can be of the following type(s)None of the above
  13. Which of the following are keywords?
  14. A method declared as static can not access non-static class members.
  15. Throwing an exception always causes program termination.
  16. An EJB is a server-side component that encapsulates the business logic of an application
  17. A package is a collection of
  18. The expression (x == y && a<b) is true If either x == y is true or a<b is true.
  19. The name of the RMI compiler is ___________
  20. The modulus operator (%) can be used only with Integer operands.
  21. A variable declared inside the for loop control can not be referenced out side the loop.
  22. Two methods cannot have the same name in Java.
  23. Given the codeString s = new String("abc");Which of the following calls are valid?
  24. putValue(...) method takes _____________________-
  25. The break statement is required in the default case of a switch selection structure.
  26. A final class may not have any abstract method.
  27. Which of the following represent legal flow control statements?
  28. To delete a file, we can use an instance of class file.
  29. Declarations can appear anywhere in the body of a Java method.
  30. A JSP file can be stored_________________