10. Fundamental Classes
10.1 |
(b)
The method hashCode() in the Object class returns a hash code value of type int. |
10.2 |
(e)
All arrays are genuine objects and inherit all the methods defined in the Object class, including the clone() method. Neither the hashCode() method nor the equals() method is declared final in the Object() class, and it cannot be guaranteed that implementations of these methods will differentiate between all objects. |
10.3 |
(a)
The clone() method of the Object class will throw a CloneNotSupportedException if the class of the object does not implement the Cloneable interface. |
10.4 |
(a), (c), and (d)
The class java.lang.Void is considered a wrapper class, although it does not wrap any value. There is no class named java.lang.Int |
Get Programmer's Guide to Java™ Certification, A: A Comprehensive Primer, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.