Multiple Choice
Let Object a be larger than Object b. What will the following method call return? a.compareTo(b)
A) it will return 0
B) it will return a number greater than 0
C) it will return a number less than 0
D) it will return true
E) it will return false
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q27: What is polymorphism?
Q29: If a class implements an interface, it
Q30: Why can't an interface be instantiated?
Q31: Let Animal be an interface. Then it
Q33: Can references to interface types be polymorphic?
Q34: The Comparable interface contains which of the
Q35: A polymorphic reference is one that can
Q36: Give an example of a class that
Q37: How does inheritance relate to polymorphism in
Q38: A single class may implement multiple interfaces.