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

Java认证考试

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

Given two collection objects referenced by col1 and col2,which of these statements are true?()

  • A、The operation col1.retainAll(col2) will not modify the col1 object.
  • B、The operation col1.removeAll(col2) will not modify the col2 object.
  • C、The operation col1.addAll(col2) will return a new collection object, containing elements from both col1      and col2.
  • D、The operation col1.containsAll(Col2) will not modify the col1 object.
正确答案:B,D
答案解析:
进入题库查看解析

微信扫一扫手机做题