Vidyalelo
Java Programming · Q4

Miscellaneous Java

Programming · Java Programming · question 4

Q4

What is the purpose of the `hashCode()` method in Java's Object class?

A.
To execute SQL queries
B.
To return a unique identifier for an object
Answer
C.
To create JavaBeans
D.
None of These

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board