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.
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.