Home

It is perfectly legal to refer to any instance variable inside of a static method.

A. True

B. False

You can do it
  1. The import statement is always the first no comment statement in a Java program files.
  2. Which of the following statements are true?
  3. class.forName(...) creates an instance of java ODBC driver
  4. Which of the following control expressions are valid for an if statement?
  5. The use of protected keyword to a member in a class will restrict its visibility as follows:
  6. Which of the following string can be used as mode string for creating a RandomAccessFile object?
  7. Which of the following keywords are used to control access to a class member?
  8. The break statement is required in the default case of a switch selection structure.
  9. JdbcOdbcDriver is an object of Object class
  10. If you want to assign a value of 99 to the variable year, then which of the following lines can be used…
  11. When present, package must be the first no comment statement in the file.
  12. Which of the following are not keywords?
  13. Every method of a final in class is implicitly final.
  14. When we invoke repaint () for a Component, the AWT invokes the method:
  15. Which of the following statements are valid array declarations?
  16. A JSP file can be stored_________________
  17. An individual array element that is passed to a method and modified in that method will contain the…
  18. Which of the following command lines options generates documentation for all classes and methods?
  19. An EJB is a server-side component that encapsulates the business logic of an application
  20. Which of the following statements are true?
  21. Which of the following methods can be used to draw the outline of a square?
  22. All methods in an abstract class must be declared abstract.
  23. In evaluating a logical expression of type 'Boolean expression 1&& Boolean expression 2', both the Boolean…
  24. In the code below, what data types the variable x can have?
  25. We can add more than one class(es) at the time of compilation Java Beans.
  26. DataInput is
  27. For all insert, update, delete, query operations on a database, ResultSet object creation is mandatory.
  28. JSP files creates ________________
  29. A method declared as static can not access non-static class members.
  30. When we implement an interface method, it should be declared as public.