Java - Online Test - Hashcode - javasearch.buggybread.com
OCJP / SCJP
New in Java 8
Java 8 Lambda
Java 8 java.time
Search Java Test Questions
223 test questions in repository.
Java - Test Questions on 'Hashcode' - 2 questions found
Which of the following is false ?
A Class cannot override both hashcode and equals method.
A class can override both hashcode and equals method.
A Class must override hashCode method if its overridding equal method.
A Class can override hashCode even if its not overridding equals method.
overridding hashcode and equals method
When String literals are compared using ==, they always returns true if the string values are same because ..
of overridden compareTo method
of overridden compare method
of String Pool
== means that the object contents are equal
comments powered by Disqus.
comments powered by