多做题,通过考试没问题!

Java认证考试

睦霖题库>其他计算机考试>Java认证考试

Given that b and c refer to instances of wrapper classes, which two statements are true?()

  • A、 b.equals(b) returns true.
  • B、 b.equals(c) returns the same result as b == c.
  • C、 b.eqials(c) can return false even if c.equals(b) returns true.
  • D、 b.equals(c) throws an exception if b and c are different wrapper types.
  • E、 b.equals(c) returns false if the type of wrapper objects being compared are different.
正确答案:B,C
答案解析:
进入题库查看解析

微信扫一扫手机做题