A) does not have any subclasses
B) is a superclass with many subclasses
C) cannot be instantiated
D) is the base class of all other classes
Correct Answer
verified
Multiple Choice
A) The operator new
B) The dot (.) operator
C) The instanceof operator
D) The + operator
Correct Answer
verified
True/False
Correct Answer
verified
True/False
Correct Answer
verified
True/False
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) It must be used every time a method from the superclass is called.
B) It must be the last statement of the subclass constructor.
C) It must be the first statement of the subclass constructor.
D) It can only be used once in a program.
Correct Answer
verified
Multiple Choice
A) Square is a superclass, and Shape and Circle are subclasses of Square.
B) Shape is a superclass, and Circle and Square are subclasses of Shape.
C) Shape, Circle, and Square are all sibling classes.
D) These three classes cannot be related.
Correct Answer
verified
True/False
Correct Answer
verified
True/False
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) Only (i)
B) Only (ii)
C) Both (i) and (ii)
D) None of these
Correct Answer
verified
Multiple Choice
A) overloads
B) overrides
C) overstates
D) deletes
Correct Answer
verified
Multiple Choice
A) is-a
B) has-a
C) was-a
D) had-a
Correct Answer
verified
Multiple Choice
A) inheritance
B) aggregation
C) overloading
D) overriding
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) overloads
B) overrides
C) overstates
D) deletes
Correct Answer
verified
Multiple Choice
A) Only (i)
B) Only (ii)
C) Both (i) and (ii)
D) None of these
Correct Answer
verified
Multiple Choice
A) zero
B) two
C) three
D) four
Correct Answer
verified
Multiple Choice
A) is any method in the abstract class
B) cannot be inherited
C) has no body
D) is found in a subclass and overrides methods in a superclass using the reserved word abstract
Correct Answer
verified
Showing 21 - 40 of 50
Related Exams