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

A. True

B. False

You can do it
  1. The name of the RMI compiler is ___________
  2. A panel can not be added to another panel.
  3. Servlet has ___________
  4. A constructor must always invoke its supper class constructor in its first statement.
  5. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  6. Consider the following class definitions: class maths { student student1; } class student { String name;…
  7. DriverManager.getConnection("jdbc:odbc:dsn_name") method does not depend on the class.forName(...) method.
  8. It is perfectly legal to assign a subclass object to a supper class reference.
  9. executeUpdate automatically updates data because___________
  10. Members of a class specified as private are accessible only to the methods of the class.
  11. Which of the following methods belong to the String class?
  12. JdbcOdbcDriver is an object of Object class
  13. Message-Driven beans act as a listener for the Java Message Service API, processing messages synchronously
  14. It is an error to have a method with the same signature in both the super class and its subclass.
  15. The keywords reserved but not used in the initial version of Java re:
  16. In RMI before running the client program we must start RMI Registry.
  17. Two methods cannot have the same name in Java.
  18. If m and n are int type variables, what will be the result of the expression'm % n' when m = -14 and…
  19. Which of the following will produce a value of 10 if x = 9.7?
  20. If you want to assign a value of 99 to the variable year, then which of the following lines can be used…
  21. It is perfectly legal to refer to any instance variable inside of a static method.
  22. To delete a file, we can use an instance of class file.
  23. When we implement the Runnable interface, we must define the method
  24. executeUpdate(------------) returns ___________
  25. Which of the following command lines options generates documentation for all classes and methods?
  26. Which of the following string can be used as mode string for creating a RandomAccessFile object?
  27. Which of the following represent legal flow control statements?
  28. The use of protected keyword to a member in a class will restrict its visibility as follows:
  29. Which of the following classes are available in the java.lang package?
  30. The import statement is always the first no comment statement in a Java program files.