What is the return type of the hashCode() method in the Object class?
A. Object
B. int
C. long
D. void
Answer:B
What is the return type of the hashCode() method in the Object class?
A. Object B. int C. long D. void
Explanation: In Java, the return type of hashCode() method is an integer, as it returns a hash code value for the object.