A) Nothing is wrong with the code.
B) The method super is not defined.
C) The call to the method super must be the first statement in the constructor.
D) No values may be passed to super.
Correct Answer
verified
True/False
Correct Answer
verified
Multiple Choice
A) you cannot create an instance of the class
B) the method will have only a header, but not a body, and end with a semicolon
C) the method must be overridden in subclasses
D) All of the above
Correct Answer
verified
Multiple Choice
A) must be the first statement in the superclass's constructor
B) can appear in any method of the subclass
C) must be the first statement in the subclass's constructor
D) is deprecated and is no longer supported in newer versions of Java
Correct Answer
verified
Multiple Choice
A) 6
B) 7
C) 8
D) 9
Correct Answer
verified
Multiple Choice
A) you must create an instance of the class
B) the method will have only a header, but not a body, and end with a semicolon
C) the method cannot be overridden in subclasses
D) All of the above.
Correct Answer
verified
Multiple Choice
A) public class ClassA implements Interface1, Interface2, Interface3
B) public class ClassA implements [Interface1, Interface2, Interface3]
C) public class ClassA implements (Interface1, Interface2, Interface3)
D) public class ClassA implements Interface1 Interface2 Interface3
Correct Answer
verified
Multiple Choice
A) some of the characteristics of the general class, but not all, plus additional characteristics
B) some of the characteristics of the general object, but not all
C) none of the characteristics of the general object
D) all the characteristics of the general object, plus additional characteristics
Correct Answer
verified
Multiple Choice
A) flowchart
B) class map
C) class hierarchy
D) binary tree
Correct Answer
verified
Multiple Choice
A) ClassA
B) ClassB
C) ClassC
D) Cannot tell
Correct Answer
verified
Multiple Choice
A) int x = x * factor;
B) IntCalculator = new divider(x, 2) ;
C) IntCalculator multiplier = x -> x * factor;
D) All of the above
Correct Answer
verified
Multiple Choice
A) 4
B) 5
C) 10
D) 11
Correct Answer
verified
Multiple Choice
A) are final and static
B) have protected access
C) must be initialized in the class implementing the interface
D) have private access
Correct Answer
verified
Multiple Choice
A) lambda
B) beta
C) alpha
D) sigma
Correct Answer
verified
Multiple Choice
A) not quite private
B) not quite public
C) both A and B
D) neither A nor B
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
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
Multiple Choice
A) implement an interface
B) extend another class
C) either A or B
D) both A and B
Correct Answer
verified
Multiple Choice
A) public class Salaried extends PayType
B) public class Salaried implements PayType
C) public class Salaried derivedFrom(Paytype)
D) public class PayType derives Salaried
Correct Answer
verified
Showing 41 - 60 of 70
Related Exams