• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

equals and ==

 
Raj Puri
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If a1.equal(a2) return true will that mean a1 == a2. If a1 and a2 are objects.
 
Kaz Yosh
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, equals doesnt guarantee that two instances have references pointed to the same objct.
 
La Vish
Ranch Hand
Posts: 161
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Francis Siu
Ranch Hand
Posts: 867
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Rajesh
here and here
If you are still confused,please feel free to reply
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic