当前位置: 技术问答>java相关
引导scjp的选择题
来源: 互联网 发布时间:2017-04-06
本文导语: Which of the following statements are true? A. The equals() method determines if reference values refer to the same object. B. The == operator determines if the contents and type of two separate objects match. C. The equals() method returns true ...
Which of the following statements are true?
A. The equals() method determines if reference values refer to the same object.
B. The == operator determines if the contents and type of two separate objects match.
C. The equals() method returns true only when the contents of two objects match.
D. The class File overrides equals() to return true if the contents and type of two separate objects match.
A. The equals() method determines if reference values refer to the same object.
B. The == operator determines if the contents and type of two separate objects match.
C. The equals() method returns true only when the contents of two objects match.
D. The class File overrides equals() to return true if the contents and type of two separate objects match.
|
只有d
a.b. 当然不对了
c. 你自己重载equals的时候,可以根据自己的需要,不一定两个对象的内容一抹一样
a.b. 当然不对了
c. 你自己重载equals的时候,可以根据自己的需要,不一定两个对象的内容一抹一样
|
d 是对的
a 嘛 不太清楚究竟是什么意思
a 嘛 不太清楚究竟是什么意思
|
我觉得只有D对