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

1 Expert Approved Answer
Step: 1 Unlock

e All arrays are genuine objects and inherit all the methods ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Java Programming 8th Questions!