| Review Questions |
10.1 |
What is the return type of the hashCode() method in the Object class?
Select the one correct answer.
|
10.2 |
Which statement is true?
Select the one correct answer.
If the references x and y denote two different objects, then the expression x.equals(y) is always false. If the references x and y denote two different objects, then the expression (x.hashCode() == y.hashCode()) is always false. The hashCode() method in the Object class is declared final. The equals() method in the Object class is declared final. All arrays have a method named clone.
|
10.3 |
Which exception can the clone() method of the Object class throw?
Select the one correct answer.
CloneNotSupportedException
|
..................Content has been hidden....................
You can't read the all page of ebook, please click
here login for view all page.