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

单项选择题

What is the appropriate definition of the hashCode method in class Person?()

    A.return super.hashCode();
    B.return name.hashCode() + age * 7;
    C.return name.hashCode() + comment.hashCode() / 2;
    D.return name.hashCode() + comment.hashCode() / 2- age * 3;

点击查看答案

相关考题

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

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