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. Objects are passed to a method by use of call-by-reference.
  2. Which of the following methods can be used to draw the outline of a square?
  3. Throwing an exception always causes program termination.
  4. The keywords reserved but not used in the initial version of Java re:
  5. Frames and applets cannot be used together in the same program.
  6. Any class may be inherited by another class in the same package.
  7. We can over load methods with differences only in their return type.
  8. A constructor must always invoke its supper class constructor in its first statement.
  9. DataInput is
  10. The import statement is always the first no comment statement in a Java program files.
  11. Which of the following string can be used as mode string for creating a RandomAccessFile object?
  12. What is error in the following class definitions? abstract class xy { abstract sum(int x, int y)…
  13. Members of a class specified as private are accessible only to the methods of the class.
  14. The name of a Java program file must match the name of the class with the extension Java.
  15. Any method in a supper class can be over ridden in its subclass.
  16. Every call to wait has a corresponding call to notify that will eventually end the wafting.
  17. Servlet can have ___________
  18. When present, package must be the first no comment statement in the file.
  19. Consider the following class definitions: class maths { student student1; } class student { String name;…
  20. We would like to make a member of a class visible in all subclasses regardless of what package they…
  21. With javadoc, which of the following denotes a javadoc comment?
  22. class.forName(...) creates an instance of java ODBC driver
  23. A Java monitor must either extend thread class or implement Runnable interface.
  24. The default case is always required in the switch selection structure.
  25. Submit button always fires doPost(...)
  26. Which of the following statements are true?
  27. It is an error if a class with one or more abstract methods is not explicitly declared abstract.
  28. A final class may not have any abstract method.
  29. The expression (x == y && a<b) is true If either x == y is true or a<b is true.
  30. It is perfectly legal to assign a subclass object to a supper class reference.