Home

A static class method can be invoked by simply using the name of the method alone.

A. True

B. False

You can do it
  1. It is an error to catch the same type of exception in two different catch blocks associated with a particular…
  2. When present, package must be the first no comment statement in the file.
  3. The use of protected keyword to a member in a class will restrict its visibility as follows:
  4. A thread can make second thread ineligible for execution by calling the suspend (-) method on second…
  5. The name of a Java program file must match the name of the class with the extension Java.
  6. It is perfectly legal to assign a subclass object to a supper class reference.
  7. Connection, Statement are interfaces and ResultSet is a class.
  8. executeUpdate(------------) returns ___________
  9. Members of a class specified as private are accessible only to the methods of the class.
  10. The methods wait() and noify() are defined in
  11. Throwing an exception always causes program termination.
  12. When X is a positive number the operations x>> 2 and x>>>2 both produce the same result.
  13. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  14. Consider the following code snippet: try {int x=0; int y=50/x; System.out.println("Division by zero");…
  15. DataInput is
  16. The length of a string object 's1' can be obtained using the expression s1.length.
  17. In RMI before running the client program we must start RMI Registry.
  18. Which exception is thrown by the read() method of InputStream class?
  19. A string object can not be modified after it is created.
  20. Frames and applets cannot be used together in the same program.
  21. DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend on the class.forName(...) method.
  22. Which of the following statements are true?
  23. In the code below, what data types the variable x can have?
  24. The check box group class is a subclass of the component class.
  25. The default case is always required in the switch selection structure.
  26. To delete a file, we can use an instance of class file.
  27. All methods in an abstract class must be declared abstract.
  28. Which of the following are keywords?
  29. putValue(...) method takes _____________________-
  30. The name of the RMI compiler is ___________