What is the return type of the hashCode() method in the Object class?
a) Object
b) int
c) long
d) void
🔗Reference: stackoverflow.com
🔗Source: Java Interview Questions and Answers
Answer: (b) int
Explanation: In Java, the return type of hashCode() method is an integer, as it returns a hash code value for the object.
Hence, the correct answer is the option (b)