欢迎来到在线考试题库网 在线考试题库官网
logo
全部科目 > Oracle认证考试 > OCJP(310-065)

多项选择题

Given:

A programmer is developing a class Key, that will be used as a key in a standard java.util.HashMap. Which two methods should be overridden to assure that Key works correctly as a key?()

    A.public int hashCode()
    B.public boolean equals(Key k)
    C.public int compareTo(Object o)
    D.public boolean equals(Object o)
    E.public boolean compareTo(Key k)

点击查看答案

相关考题

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

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