Home

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

A. True

B. False

You can do it
  1. The modulus operator (%) can be used only with Integer operands.
  2. What does the following line of code do?TextField text=new TextField(10);
  3. The name of the RMI compiler is ___________
  4. A variable declared inside the for loop control can not be referenced out side the loop.
  5. Which of the following are the wrapper classes?
  6. The default case is always required in the switch selection structure.
  7. Members of a class specified as private are accessible only to the methods of the class.
  8. Connection, Statement are interfaces and ResultSet is a class.
  9. Servlet has ___________
  10. Consider the following class definition.Class Student extends String{}What happens when we try to compile…
  11. Consider the following statements: int x = 10, y = 15; x = ((x < y) ? (y + x) : (y - x); What will…
  12. We can add more than one class(es) at the time of compilation Java Beans.
  13. What is wrong in the following class definitions? abstract class print { abstract show();} class…
  14. Servlet can have ___________
  15. Which of the following represent legal flow control statements?
  16. The check box group class is a subclass of the component class.
  17. Objects are passed to a method by use of call-by-reference.
  18. Which of the following classes are available in the java.lang package?
  19. The expression (x == y && a<b) is true If either x == y is true or a<b is true.
  20. In RMI before running the client program we must start RMI Registry.
  21. The import statement is always the first no comment statement in a Java program files.
  22. A final class may not have any abstract method.
  23. executeUpdate automatically updates data because___________
  24. DataInput is
  25. Which of the following will produce a value of 10 if x = 9.7?
  26. EJBs can be of the following type(s)None of the above
  27. A panel can not be added to another panel.
  28. Message-Driven beans act as a listener for the Java Message Service API, processing messages synchronously
  29. When we invoke repaint () for a Component, the AWT invokes the method:
  30. The use of protected keyword to a member in a class will restrict its visibility as follows: