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 or no-arg 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 or no-arg constructor just before the code in the subclass's constructor executes
Correct Answer:
Verified
Q1: You can write a super statement that
Q2: Because every class directly or indirectly inherits
Q3: An abstract class is not instantiated itself
Q4: A(n) _ method is a method that
Q5: A functional interface is simply an interface
Q7: In Java, a reference variable is _
Q8: When a subclass extends a superclass, the
Q9: Inheritance involves a subclass, which is the
Q10: A _ member's access is somewhere between
Q11: Which of the following shows the inheritance
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