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 these are true.
Correct Answer
verified
Multiple Choice
A) pseudocode
B) a UML diagram
C) a CRC card
D) a hierarchy chart
Correct Answer
verified
Multiple Choice
A) only protected and private members of the superclass
B) all members of the superclass
C) only public and private members of the superclass
D) only public and protected members of the superclass
Correct Answer
verified
Multiple Choice
A) ClassA must override each method in ClassB.
B) ClassB must override each method in ClassA.
C) ClassB inherits from ClassA.
D) ClassA inherits from ClassB.
Correct Answer
verified
Multiple Choice
A) both methods may be called with a subclass object
B) only the subclass method may be called with a subclass object
C) only the superclass method may be called with a subclass object
D) neither method may be called with a subclass object
Correct Answer
verified
Multiple Choice
A) lambda
B) beta
C) alpha
D) sigma
Correct Answer
verified
Multiple Choice
A) the more general classes are toward the right of the tree and the more specialized classes are toward the left
B) the more general classes are toward the top of the tree and the more specialized classes are toward the bottom
C) the more general classes are toward the left of the tree and the more specialized classes are toward the right
D) the more general classes are toward the bottom of the tree and the more specialized classes are toward the top
Correct Answer
verified
Multiple Choice
A) ClassA
B) ClassB
C) ClassC
D) cannot tell
Correct Answer
verified
Multiple Choice
A) equals
B) instanceOf
C) >>
D) isa
Correct Answer
verified
Multiple Choice
A) This cannot be determined from the code.
B) It will call the method super and pass the value 40 to it as an argument.
C) It will call the constructor of ClassA that receives an integer as an argument.
D) The method super will have to be defined before we can say what will happen.
Correct Answer
verified
Multiple Choice
A) final
B) super
C) void
D) public
Correct Answer
verified
Multiple Choice
A) super
B) extends
C) final
D) abstract
Correct Answer
verified
Multiple Choice
A) a chain of inheritance
B) linear inheritance
C) multiple interfaces
D) cascading classes
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) some of the characteristics of the general class, but not all, plus additional characteristics
B) some, but not all, of the characteristics of the general object
C) none of the characteristics of the general object
D) all of the characteristics of the general object plus additional characteristics
Correct Answer
verified
True/False
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) methods of the same class
B) methods of a subclass
C) methods in the same package
D) Any of these
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) "is a"
B) "contains a"
C) "has a"
D) "consists of"
Correct Answer
verified
Showing 1 - 20 of 64
Related Exams