When we implement an interface method, it should be declared as public.

A. True

B. False

You can do it
  1. Which of the following statements are true?
  2. putValue(...) method takes _____________________-
  3. A Java monitor must either extend thread class or implement Runnable interface.
  4. Throwing an exception always causes program termination.
  5. Servlet can have ___________
  6. Connection, Statement are interfaces and ResultSet is a class.
  7. Java always provides a default constructor to a class.
  8. What is error in the following class definitions? abstract class xy { abstract sum(int x, int y)…
  9. We can over load methods with differences only in their return type.
  10. Declaring a method synchronized guarantees that the deadlock cannot occur.
  11. The length of a string object 's1' can be obtained using the expression s1.length.
  12. Which of the following methods can be used to draw the outline of a square?
  13. class.forName(...) creates an instance of java ODBC driver
  14. A package is a collection of
  15. DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend on the class.forName(...) method.
  16. We would like to make a member of a class visible in all subclasses regardless of what package they…
  17. In RMI before running the client program we must start RMI Registry.
  18. A catch can have comma-separated multiple arguments.
  19. In a single Servlet class we can use____________
  20. It is an error to have a method with the same signature in both the super class and its subclass.
  21. Which of the following will produce a value of 10 if x = 9.7?
  22. The import statement is always the first no comment statement in a Java program files.
  23. Which are the valid ways to create DataInputStream streams?
  24. Which of the following represent legal flow control statements?
  25. A final class may not have any abstract method.
  26. Which of the following statements are true?
  27. The setBackground() method is part of the class
  28. In order to connect to a database through java program we must create _______-
  29. Which of the following will produce a value of 22 if x=22.9:
  30. The modulus operator (%) can be used only with Integer operands.