Which of the following statements is true? Select the one correct answer. (a) If the references x
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 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.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Programmers Guide To Java SE 8 Oracle Certified Associate OCA
ISBN: 9780132930215
1st Edition
Authors: Khalid Mughal, Rolf Rasmussen
Question Posted: