It is perfectly legal to assign a subclass object to a supper class reference.

A. True

B. False

You can do it
  1. In order to connect to a database through java program we must create _______-
  2. class.forName(...) creates an instance of java ODBC driver
  3. We would like to make a member of a class visible in all subclasses regardless of what package they…
  4. It is perfectly legal to refer to any instance variable inside of a static method.
  5. Which of the following keywords are used to control access to a class member?
  6. Which of the following represent legal flow control statements?
  7. The import statement is always the first no comment statement in a Java program files.
  8. Members of a class specified as private are accessible only to the methods of the class.
  9. Which of the following are not keywords?
  10. The break statement is required in the default case of a switch selection structure.
  11. Which of the following are the wrapper classes?
  12. The expression (x == y && a<b) is true If either x == y is true or a<b is true.
  13. executeUpdate(------------) returns ___________
  14. Which of the following command lines options generates documentation for all classes and methods?
  15. The default case is always required in the switch selection structure.
  16. Which javadoc tag is used to denote a comment for methods parameters?
  17. The name of the RMI compiler is ___________
  18. A thread can make second thread ineligible for execution by calling the suspend (-) method on second…
  19. A static class method can be invoked by simply using the name of the method alone.
  20. The check box group class is a subclass of the component class.
  21. If you want to assign a value of 99 to the variable year, then which of the following lines can be used…
  22. In evaluating a logical expression of type 'Boolean expression 1&& Boolean expression 2', both the Boolean…
  23. Give file is a file object, which of the following are legal statements to create a new file.
  24. Which of the following represent legal flow control statements?
  25. Message-Driven beans act as a listener for the Java Message Service API, processing messages synchronously
  26. A variable declared inside the for loop control can not be referenced out side the loop.
  27. What is java -g used for?
  28. Which of the following statements are true?
  29. A package is a collection of
  30. Which of the following methods belong to the String class?