Multiple Choice
Which statement best describes the relationship between superclass and subclass types?
A) A subclass reference cannot be assigned to a superclass variable and a superclass reference cannot be assigned to a subclass variable.
B) A subclass reference can be assigned to a superclass variable and a superclass reference can be assigned to a subclass variable.
C) A superclass reference can be assigned to a subclass variable, but a subclass reference cannot be assigned to a superclass variable.
D) A subclass reference can be assigned to a superclass variable, but a superclass reference cannot be assigned to a subclass variable.
Correct Answer:

Verified
Correct Answer:
Verified
Q11: Which of the following statements is false?<br>A)
Q12: Which of the following statements is false?<br>A)
Q13: Classes and methods are declared final for
Q14: Consider classes A, B and C, where
Q15: For which of the following would polymorphism
Q17: If the superclass contains only abstract method
Q18: Which of the following is not possible?<br>A)
Q19: Which of the following statements is false?<br>A)
Q20: In Java SE 7 and earlier, an
Q21: Declaring a method final means:<br>A) it will