欢迎来到求知题库网 求知题库官网
logo
全部科目 > Java认证考试 > SCJP程序员认证考试

多项选择题

Which two statements are true about the hashCode method?()

    A. The hashCode method for a given class can be used to test for object equality and object inequality for that class.
    B. The hashCode method is used by the java.util.SortedSet collection class to order theelements within that set.
    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 of values must follow a Gaussian distribution.
    E. The hashCode method is used by the java.util.HashSet collection class to group the elements within that set into hash buckets for swift retrieval.

点击查看答案&解析

相关考题

微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题