Home

A method declared as static can not access non-static class members.

A. True

B. False

You can do it
  1. Declaring a method synchronized guarantees that the deadlock cannot occur.
  2. Which of the following classes are available in the java.lang package?
  3. The programmer must explicitly create the system .in and system .out objects.
  4. Which of the following are keywords?
  5. A static class method can be invoked by simply using the name of the method alone.
  6. For all insert, update, delete, query operations on a database, ResultSet object creation is mandatory.
  7. Given the codeString s = new String("abc");Which of the following calls are valid?
  8. Which exception is thrown by the read() method of InputStream class?
  9. To delete a file, we can use an instance of class file.
  10. Message-Driven beans act as a listener for the Java Message Service API, processing messages synchronously
  11. A thread can make second thread ineligible for execution by calling the suspend (-) method on second…
  12. It is an error if a class with one or more abstract methods is not explicitly declared abstract.
  13. Which of the following methods belong to the String class?
  14. The expression (x == y && a<b) is true If either x == y is true or a<b is true.
  15. Which of the following methods can be used to draw the outline of a square?
  16. Which of the following command lines options generates documentation for all classes and methods?
  17. Which of the following will produce a value of 10 if x = 9.7?
  18. With javadoc, which of the following denotes a javadoc comment?
  19. A final class may not have any abstract method.
  20. Objects are passed to a method by use of call-by-reference.
  21. Java is fully object oriented programme.
  22. Any method in a supper class can be over ridden in its subclass.
  23. The use of protected keyword to a member in a class will restrict its visibility as follows:
  24. In evaluating a logical expression of type 'Boolean expression 1&& Boolean expression 2', both the Boolean…
  25. The setBackground() method is part of the class
  26. executeUpdate(------------) returns ___________
  27. It is perfectly legal to refer to any instance variable inside of a static method.
  28. Which are the valid ways to create DataInputStream streams?
  29. Which of the following methods can be used to remove a component from the display?
  30. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.