SCJP1.5(81%), SCDJWS(94%), next mission SCEA (but need to wait or that)
E. equals() can be true even if it�s comparing different objects.
cmbhatt
SCJP-1.5<br />SCWCD-1.4
Originally posted by harinath chakrapani:
In short hashCode is used for object inequality
Originally posted by dolly shah:
Chandra in your code it is comparing two references, which refer to the same object.
cmbhatt
SCJP-1.5<br />SCWCD-1.4
"If you dont override equals() method, you wont be able to use those objects as a key in a hashtable & you probably wont get accurate sets."
I am not getting it. Can you explain?
cmbhatt
SCJP-1.5<br />SCWCD-1.4
all events occur in real time
cmbhatt
Not korrekt. You may get duplicates.Originally posted by phani bhushan reddy:
But with equals() without a hash code method will be possible
cmbhatt
Arthur, where are your pants? Check under this tiny ad.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
|