单选题:Which of the following statement is true?
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
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