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

A. True

B. False

You can do it
  1. What does the following line of code do?TextField text=new TextField(10);
  2. What is java -g used for?
  3. Submit button always fires doPost(...)
  4. Any method in a supper class can be over ridden in its subclass.
  5. Which of the following string can be used as mode string for creating a RandomAccessFile object?
  6. Objects are passed to a method by use of call-by-reference.
  7. Which of the following are the wrapper classes?
  8. A variable declared inside the for loop control can not be referenced out side the loop.
  9. Which of the following represent legal flow control statements?
  10. executeUpdate automatically updates data because___________
  11. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  12. In a single Servlet class we can use____________
  13. The default case is always required in the switch selection structure.
  14. If m and n are int type variables, what will be the result of the expression'm % n' when m = -14 and…
  15. Throwing an exception always causes program termination.
  16. It is perfectly legal to assign a subclass object to a supper class reference.
  17. Consider the following code snippet: try {int x=0; int y=50/x; System.out.println("Division by zero");…
  18. Which of the following statements are true?
  19. Frames and applets cannot be used together in the same program.
  20. Which of the following methods can be used to change the size of a size() *resize()
  21. A final class may not have any abstract method.
  22. Which of the following control expressions are valid for an if statement?
  23. The setBackground() method is part of the class
  24. class.forName(...) creates an instance of java ODBC driver
  25. Which of the following statements are true?
  26. Which of the following statements are valid array declarations?
  27. A package is a collection of
  28. A panel can not be added to another panel.
  29. In evaluating a logical expression of type 'Boolean expression 1&& Boolean expression 2', both the Boolean…
  30. The modulus operator (%) can be used only with Integer operands.