Java - A cup of Coffee for Machine !
Saturday, August 21, 2010
Interview Questions
Using == and equals()
When you really need to know if two references are identical, use ==. But when you need to know if the objects themselves (not the references) are equal, use the equals().
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment