The future belongs to those who believe in the beauty of their dreams.Dream BIG!
SCJP 5 (76%)
SCWCD 5 (86%)
SCBCD 5(70%)
--------------------
"The greatest glory in living lies not in never falling, but in raising every time we fall.".. Nelson Mandela
The future belongs to those who believe in the beauty of their dreams.Dream BIG!
SCJP 5 (76%)
SCWCD 5 (86%)
SCBCD 5(70%)
--------------------
"The greatest glory in living lies not in never falling, but in raising every time we fall.".. Nelson Mandela
Originally posted by Mamadou Tour�:
In you equals() method, when you say "one.moofValue()", that's mean you can't handle another object .
The future belongs to those who believe in the beauty of their dreams.Dream BIG!
SCJP 5 (76%)
SCWCD 5 (86%)
SCBCD 5(70%)
--------------------
"The greatest glory in living lies not in never falling, but in raising every time we fall.".. Nelson Mandela
The future belongs to those who believe in the beauty of their dreams.Dream BIG!
Thanks<br />Dinesh
<a href="http://faq.javaranch.com/java/UseRealWords" target="_blank">Use Real Words</a> <a href="http://faq.javaranch.com/java/UseCodeTags" target="_blank">!!!Use Code Tags!!!</a> <a href="http://faq.javaranch.com/java/SayThanks" target="_blank">Say Thanks</a><br />scjp6
The future belongs to those who believe in the beauty of their dreams.Dream BIG!
Thanks<br />Dinesh
Originally posted by Dinesh Tahiliani:
on which ever ref you call equals method, it makes this refer to that ref. Which ever ref you pass to equals method it makes Object o refer to that ref.
what about this.moofvalue. it will contain both the values, so which will it print 8 or 4.
The future belongs to those who believe in the beauty of their dreams.Dream BIG!
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |