Home

The name of a Java program file must match the name of the class with the extension Java.

A. True

B. False

You can do it
  1. If m and n are int type variables, what will be the result of the expression'm % n' when m = -14 and…
  2. The modulus operator (%) can be used only with Integer operands.
  3. Declarations can appear anywhere in the body of a Java method.
  4. class.forName(...) creates an instance of java ODBC driver
  5. Which of the following keywords are used to control access to a class member?
  6. A catch can have comma-separated multiple arguments.
  7. The concept of multiple inheritance is implemented in Java by
  8. It is perfectly legal to assign a subclass object to a supper class reference.
  9. Servlet can have ___________
  10. It is perfectly legal to refer to any instance variable inside of a static method.
  11. Which of the following statements are true?
  12. We can over load methods with differences only in their return type.
  13. When we invoke repaint () for a Component, the AWT invokes the method:
  14. The methods wait() and noify() are defined in
  15. The keywords reserved but not used in the initial version of Java re:
  16. Throwing an exception always causes program termination.
  17. We can add more than one class(es) at the time of compilation Java Beans.
  18. forName() is a static factory method
  19. Java always provides a default constructor to a class.
  20. The use of protected keyword to a member in a class will restrict its visibility as follows:
  21. All the bitwise operators have the same level of precedence in Java.
  22. Which of the following command lines options generates documentation for all classes and methods?
  23. A panel can not be added to another panel.
  24. Given the codeString s = new String("abc");Which of the following calls are valid?
  25. Objects are passed to a method by use of call-by-reference.
  26. Which javadoc tag is used to denote a comment for methods parameters?
  27. The default case is always required in the switch selection structure.
  28. Message-Driven beans act as a listener for the Java Message Service API, processing messages synchronously
  29. Session bean
  30. Members of a class specified as private are accessible only to the methods of the class.