Solved

When a Subclass Constructor Calls Its Superclass Constructor, What Happens

Question 17

Multiple Choice

When a subclass constructor calls its superclass constructor, what happens if the superclass's constructor does not assign a value to an instance variable?


A) A syntax error occurs.
B) A compile-time error occurs.
C) A run-time error occurs.
D) The program compiles and runs because the instance variables are initialized to their default values.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions