Comparing two objects with == rather than equals - which of the following is true?
Answer: C
For reference types == asks whether the two variables hold the same reference, whatever the class does in equals. That is why two Strings with the same characters can be unequal by == and equal by equals, and why value comparison always goes through equals.
Please log in or register to report this question.