-->
当前位置:首页 > 题库 > 正文内容

单选题:Which of the following statement is true? 


Luz4年前 (2021-05-10)题库1913
Which of the following statement is true? 
 @[D](2)

A. The equals() method of any class 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 of any class 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 of any class 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 of any class 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

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。