Which call invokes a superclass constructor from inside a Java subclass constructor?
Correct answer B. super(...)
Subject / 929 questions
Page 16 of Programming multiple-choice questions with answers. Tap an option to check yourself.
Page 16 of 47
Correct answer B. super(...)
Correct answer D. One at most
Correct answer A. Overriding of instance methods
Correct answer C. B
Correct answer C. 1
Correct answer B. 0
Correct answer A. It cannot be instantiated directly, but it may have constructors
Correct answer D. public, static and final
Correct answer D. default
Correct answer D. Provide a body for every abstract method it inherits
Correct answer A. The class fails to compile
Correct answer D. Non-final instance fields
Correct answer B. public or package-private
Correct answer C. Package-private, visible only within its package
Correct answer B. Its own package, and subclasses in other packages
Correct answer B. A default constructor with no parameters
Correct answer C. The object on which the method was invoked
Correct answer D. 7
Correct answer C. 0
Correct answer D. 1