Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

object equality

Status
Not open for further replies.

webslinga

Programmer
Jun 20, 2006
55
US
Hey all,
i am trying to study for my SCJA certification exam and i came upon a question which is confusing and i needed some insight on it. How do you determine the equality of two objects? Are two objects considered equal when their references are pointing to the same type? Or is equality of two objects considered when the fields in an object are the same? Or should be use the equals() method?
Thanks for this.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top