-->
当前位置:首页 > 题库

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


Luz5年前 (2021-05-10)题库2171
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