阿摩線上測驗 登入

試題詳解

試卷:無年度 - SCJP 6.0 認證教戰手冊第二版 SCJP 6.0 認證教戰手冊第二版 認證教戰手冊第二版_題庫 151-200#83081 | 科目:OJCP(SCJP)

試卷資訊

試卷名稱:無年度 - SCJP 6.0 認證教戰手冊第二版 SCJP 6.0 認證教戰手冊第二版 認證教戰手冊第二版_題庫 151-200#83081

科目:OJCP(SCJP)

185 
5e4de37a20190.jpg
Which statement is true?
(A) The equals method does NOT properly override the Object.equals method.
(B) Compilation fails because the private attribute p.name cannot be accessed in line 5.
(C) To work correctly with hash-based data structures, this class must also implement the hashCode method.
(D) When adding Person objects to a java.util.Set collection, the equals method in line 4 will prevent duplicates.
正確答案:登入後查看