The compareTo method should return _____________ if the calling object equals the parameter.
A) A negative number
B) Zero
C) A positive number
D) Null
Correct Answer:
Verified
Q12: Java interfaces are a way of simulating
Q13: Inner classes available outside the scope of
Q14: An interface may contain:
A)instance variables
B)primitive variables
C)constant variables
D)all
Q15: When defining an inner class to be
Q16: A class that uses an interface must
Q18: When using the clone method from an
Q19: A common use of inner classes is
Q20: A Java interface is an example of:
A)encapsulation
B)abstraction
C)polymorphism
D)all
Q21: What are the semantics of the Comparable
Q22: An interface can contain defined constants as
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents