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

A. True

B. False

You can do it yup
  1. Objects are passed to a method by use of call-by-reference.
  2. Given the codeString s = new String("abc");Which of the following calls are valid?
  3. A JSP file can be stored_________________
  4. Throwing an exception always causes program termination.
  5. class.forName(...) creates an instance of java ODBC driver
  6. DataInput is
  7. Session bean
  8. Consider the following class definitions: class maths { student student1; } class student { String name;…
  9. Java always provides a default constructor to a class.
  10. When we implement an interface method, it should be declared as public.
  11. Which of the following classes are available in the java.lang package?
  12. A variable declared inside the for loop control can not be referenced out side the loop.
  13. JSP files creates ________________
  14. The keywords reserved but not used in the initial version of Java re:
  15. Consider the following code snippet: try {int x=0; int y=50/x; System.out.println("Division by zero");…
  16. Which of the following methods can be used to change the size of a size() *resize()
  17. The expression (x == y && a<b) is true If either x == y is true or a<b is true.
  18. When we implement the Runnable interface, we must define the method
  19. An EJB is a server-side component that encapsulates the business logic of an application
  20. The concept of multiple inheritance is implemented in Java by
  21. It is perfectly legal to assign a subclass object to a supper class reference.
  22. A method declared as static can not access non-static class members.
  23. Which of the following methods belong to the String class?
  24. An individual array element that is passed to a method and modified in that method will contain the…
  25. What does the following line of code do?TextField text=new TextField(10);
  26. Which of the following are keywords?
  27. If you want to assign a value of 99 to the variable year, then which of the following lines can be used…
  28. Which of the following are not keywords?
  29. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  30. We can add more than one class(es) at the time of compilation Java Beans.