Multiple choice technology programming languages

For any reference values x and y, x.equals(y) should return true if and only if y.equals(x) returns true

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

This is the symmetry property of the equals() contract in Java. If x.equals(y) returns true, then y.equals(x) must also return true. This is one of the requirements specified in the Object.equals() contract.