If a subclass constructor does not explicitly call a superclass constructor,
A) the superclass's fields will be set to the default values for their data types
B) Java will automatically call the superclass's default constructor immediately after the code in the subclass's constructor executes
C) it must include the code necessary to initialize the superclass fields
D) Java will automatically call the superclass's default constructor just before the code in the subclass's constructor executes
Correct Answer:
Verified
Q7: In Java, a reference variable is _
Q15: In object-oriented programming, _ allows you to
Q16: When a subclass overrides a superclass method,
Q21: What type of relationship exists between two
Q22: In a UML diagram you show a
Q30: When an "is a" relationship exists between
Q34: All fields declared in an interface _.
A)
Q36: A subclass can directly access _.
A) only
Q40: All methods specified by an interface are
Q43: A class becomes abstract when you place
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents