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

A. True

B. False

You can do it
  1. Which of the following methods can be used to change the size of a size() *resize()
  2. We can over load methods with differences only in their return type.
  3. Every method of a final in class is implicitly final.
  4. With javadoc, which of the following denotes a javadoc comment?
  5. When we implement the Runnable interface, we must define the method
  6. Which javadoc tag is used to denote a comment for methods parameters?
  7. We can add more than one class(es) at the time of compilation Java Beans.
  8. All methods in an abstract class must be declared abstract.
  9. In order to connect to a database through java program we must create _______-
  10. Consider the following class definitions: class maths { student student1; } class student { String name;…
  11. When X is a positive number the operations x>> 2 and x>>>2 both produce the same result.
  12. Every call to wait has a corresponding call to notify that will eventually end the wafting.
  13. When we invoke repaint () for a Component, the AWT invokes the method:
  14. The modulus operator (%) can be used only with Integer operands.
  15. An EJB is a server-side component that encapsulates the business logic of an application
  16. Message-Driven beans act as a listener for the Java Message Service API, processing messages synchronously
  17. The expression (x == y && a<b) is true If either x == y is true or a<b is true.
  18. If a=10 and b= 15, then the statement x =(a>b)?a:b; assigns the value 15 to x.
  19. Declaring a method synchronized guarantees that the deadlock cannot occur.
  20. The concept of multiple inheritance is implemented in Java by
  21. Session bean
  22. Which of the following statements are true?
  23. The setBackground() method is part of the class
  24. If m and n are int type variables, what will be the result of the expression'm % n' when m = -14 and…
  25. When the string objects are compared with ==, the result is true If the strings contain the same values.
  26. Which are the valid ways to create DataInputStream streams?
  27. Which of the following statements are valid array declarations?
  28. A Java monitor must either extend thread class or implement Runnable interface.
  29. It is an error to catch the same type of exception in two different catch blocks associated with a particular…
  30. When present, package must be the first no comment statement in the file.