Vidyalelo
Java Programming · Q236

Interfaces and Abstract Classes

Programming · Java Programming · question 236

Q236

Which of the following methods is a method of wrapper Integer for obtaining hash code for the invoking object?

A.
int hash()
B.
int hashcode()
C.
int hashCode()
Answer
D.
Integer hashcode()

Answer: Option C

Solution

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