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,D
答案解析:有

微信扫一扫手机做题