Question: Which of the following statements is true? Select the one correct answer. (a) If the references x and y denote two different objects, the expression
Which of the following statements is true?
Select the one correct answer.
(a) If the references x and y denote two different objects, the expression x.equals(y) is always false.
(b) If the references x and y denote two different objects, the expression
(x.hashCode() == y.hashCode()) is always false.
(c) The hashCode() method in the Object class is declared as final.
(d) The equals() method in the Object class is declared as final.
(e) All arrays have a method named clone.
Step by Step Solution
3.47 Rating (154 Votes )
There are 3 Steps involved in it
e All arrays are genuine objects and inherit all the methods ... View full answer
Get step-by-step solutions from verified subject matter experts
