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

A. True

B. False

You can do it
  1. The length of a string object 's1' can be obtained using the expression s1.length.
  2. DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend on the class.forName(...) method.
  3. It is an error to catch the same type of exception in two different catch blocks associated with a particular…
  4. Consider the following class definitions: class maths { student student1; } class student { String name;…
  5. Which of the following statements are valid array declarations?
  6. The setBackground() method is part of the class
  7. An EJB is a server-side component that encapsulates the business logic of an application
  8. It is perfectly legal to assign a subclass object to a supper class reference.
  9. JSP files creates ________________
  10. When X is a positive number the operations x>> 2 and x>>>2 both produce the same result.
  11. To delete a file, we can use an instance of class file.
  12. Servlet has ___________
  13. Which of the following are keywords?
  14. Any class may be inherited by another class in the same package.
  15. JdbcOdbcDriver is an object of Object class
  16. We can over load methods with differences only in their return type.
  17. When we invoke repaint () for a Component, the AWT invokes the method:
  18. Every call to wait has a corresponding call to notify that will eventually end the wafting.
  19. Which of the following represent legal flow control statements?
  20. Which key word can protect a class in package from accessibility by the classes outside the package?
  21. Which of the following will produce a value of 10 if x = 9.7?
  22. A panel can not be added to another panel.
  23. The methods wait() and noify() are defined in
  24. Which of the following statements are true?
  25. If m and n are int type variables, what will be the result of the expression'm % n' when m = -14 and…
  26. class.forName(...) creates an instance of java ODBC driver
  27. What does the following line of code do?TextField text=new TextField(10);
  28. The break statement is required in the default case of a switch selection structure.
  29. Members of a class specified as private are accessible only to the methods of the class.
  30. The default case is always required in the switch selection structure.