0 votes
in JAVA by
What is the return type of the hashCode() method in the Object class?

i) Object

ii) int

iii) long

iv) void

1 Answer

0 votes
by

ii) int

Reason: In Java, the return type of hashCode() method is an integer, as it returns a hash code value for the object.

Related questions

0 votes
asked Apr 10, 2021 in JAVA by Robindeniel
0 votes
asked Apr 8, 2021 in JAVA by SakshiSharma
...