Question
What is the return type of the hashCode()
method in the Object class?.
Select the one correct answer.
- (a) String
- (b) int
- (c) long
- (d) Object
- (e) Class
(b)
Note
The method hashCode()
in the Object class returns a hash code value of type int.
PreviousNextRelated