Multiple Choice
When overriding a superclass method and calling the superclass version from the subclass method, failure to prefix the superclass method name with the keyword super and a dot (.) in the superclass method call causes ________.
A) a compile-time error.
B) a syntax error.
C) infinite recursion.
D) a runtime error.
Correct Answer:

Verified
Correct Answer:
Verified
Q1: Consider the classes below, declared in the
Q2: Which of the following statements is false?<br>A)
Q3: Every class in Java, except _, extends
Q5: Private fields of a superclass can be
Q6: An advantage of inheritance is that:<br>A) All
Q7: Using the protected keyword also gives a
Q8: Which superclass members are inherited by all
Q9: Inheritance is also known as the<br>A) knows-a
Q10: Which statement is true when a superclass
Q11: The default implementation of method clone of