cool hit counter
Cafe4Java
Cafe4Java
 

SCJP 5.0 Mock Exam Answers
A1)
Answer : A (class Laptop implements Comparable <Laptop>)
Explanation :
Option B is incorrect because its usage will generate the following compilation error message:
>>>>
Laptop is not abstract and does not override abstract method compareTo(java.lang.Object) in java.lang.Comparable class Laptop implements Comparable {
>>>>
Option C and D are incorrect because the Interface Comparator defines the method 'compare', not 'compareTo'.


<<<< Return to Q1 <<<<<         >>>> Go to Q2 >>>>

Submit your feedback on this mock exam