A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Programmer Certification (SCJP/OCPJP)
equals and ==
Joined: Apr 24, 2003
Jun 01, 2003 19:36:00
If a1.equal(a2) return true will that mean a1 == a2. If a1 and a2 are objects.
Joined: May 22, 2003
Jun 01, 2003 20:02:00
No, equals doesnt guarantee that two instances have references pointed to the same objct.
"If anything can go wrong, it will"
Joined: Apr 17, 2002
Jun 01, 2003 20:17:00
This has been discussed many times before.You can use the search facility above.Just type in equals and == and you will get all the discussions on this thread.
[ June 01, 2003: Message edited by: La Vish ]
SCJP 1.4, President 60s Club
Joined: Jan 04, 2003
Jun 02, 2003 06:55:00
If you are still confused,please feel free to reply
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
subject: equals and ==
Dans Array Questions
reassigning a variable
exam lab gc question
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014