Search Interview Questions | More than 3000 questions in repository. There are more than 900 unanswered questions. Click here and help us by providing the answer. Have a video suggestion. Click Correct / Improve and please let us know. |
|
| ||||
Core Java - Interview Questions and Answers for 'Transitive equals contract' - 1 question(s) found - Order By Newest | ||||
| ||||
Ans. The equals contract is said to be transitive if obj1.equals(obj2); and obj2(.equals(obj3) then obj1.equals(obj3) also returns true. | ||||
Help us improve. Please let us know the company, where you were asked this question : | ||||
Like Discuss Correct / Improve  Transitive equals contract   rare | ||||
Related Questions | ||||
Difference between == and .equals() ? | ||||
Which String class does not override the equals() and hashCode() methods, inheriting them directly from class Object? | ||||
Can we compare Integers by using equals() in Java ? | ||||
In Java, if object A contains same the same data of object B, are they equal? | ||||
Write a class and override the equals and hashcode method ? | ||||
What is equals method in Java ? | ||||
What is a reflexive equals contract ? | ||||
why is "".equals(str); safer than str.equals("")? | ||||
Difference between equals and compareTo in Java ? | ||||