問題詳情

186Which two statements are true about the hashCode method? (Choose two.)
(A) The hashCode method for a given class can be used to test for object equality and object inequality forthat class.
(B) The hashCode method is used by the java.util.SortedSet collection class to order the elements within thatset.
(C) The hashCode method for a given class can be used to test for object inequality, but NOT object equality,for that class.
(D) The only important characteristic of the values returned by a hashCode method is that the distribution ofvalues must follow a Gaussian distribution.
(E) The hashCode method is used by the java.util.HashSet collection class to group the elements within thatset into hash buckets for swift retrieval.

參考答案

無參考答案

內容推薦

內容推薦