aspose file tools
The moose likes Beginning Java and the fly likes Core java Object's equals() method comparing with ==operator Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic
Author

Core java Object's equals() method comparing with ==operator

Deepak Bobal
Ranch Hand

Joined: Feb 06, 2008
Posts: 96
I am confused taking the difference between equals and == operator.How and where the work?And one more thing,what does it stand foe equating two object references ?
if Integer a=2;
and Integer b=3;
and if i do a=b;
so according to me bit pattern of b is copied to a .But when i see output i get value of b is transformed to a.And giving True while using equals() and ==.
I m bit confused.
please help me out.
Thanks n regards
Deepak


Constant dripping hollows out a stone....
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Core java Object's equals() method comparing with ==operator
 
Similar Threads
use of equals() method for SCJP 1.4
equals() question required
hashCode and equals
Core java Object's equals() method comparing with ==operator
Abstract