A) then a class that inherits from it, must initialize the superclass values.
B) then a class that inherits from it, must call one of the constructors that the superclass does have.
C) then a class that inherits from it, does not inherit the data member fields from the superclass.
D) then a class that inherits from it, must contain the default constructor for the superclass.
Correct Answer
verified
Multiple Choice
A) it must include the code necessary to initialize the superclass fields
B) the superclass fields will be set to the default values for their data types
C) Java will automatically call the superclass's default or no-arg constructor immediately after the code in the subclass's constructor executes
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
True/False
Correct Answer
verified
Multiple Choice
A) The method header must begin with the key word default.
B) A class that implements the interface must override the method.
C) The @Default annotation must precede the method header.
D) All of the above
Correct Answer
verified
Multiple Choice
A) private members
B) public members
C) protected members
D) restricted members
Correct Answer
verified
Multiple Choice
A) Line 4
B) Line 9
C) Line 14
D) This is an error and will cause the program to crash.
Correct Answer
verified
True/False
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) 4
B) 5
C) 10
D) 11
Correct Answer
verified
Multiple Choice
A) overridden
B) overloaded
C) superclass methods
D) subclass methods
Correct Answer
verified
Showing 61 - 70 of 70
Related Exams