posted 19 years ago
hi paramesh
This is legal it gives the result as equal.Both object reference has the same hashcode, because both value r same.
Check the following code to understand
Now in this case, it has differnet hashcode.
" Don't be afraid of pressure. Remember that pressure is what turns a lump of coal into a diamond... " <br /> <br />Thanks & Regards...<br />Sakthi<br />SCJP1.4, OCA