网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)
Giventwocollectionobjectsreferencedbycol1andcol2,whichofthesestatementsaretrue?()

A.Theoperationcol1.retainAll(col2)willnotmodifythecol1object.

B.Theoperationcol1.removeAll(col2)willnotmodifythecol2object.

C.Theoperationcol1.addAll(col2)willreturnanewcollectionobject,containingelementsfrombothcol1 andcol2.

D.Theoperationcol1.containsAll(Col2)willnotmodifythecol1object.


参考答案

更多 “ Giventwocollectionobjectsreferencedbycol1andcol2,whichofthesestatementsaretrue?() A.Theoperationcol1.retainAll(col2)willnotmodifythecol1object.B.Theoperationcol1.removeAll(col2)willnotmodifythecol2object.C.Theoperationcol1.addAll(col2)willreturnanewcollectionobject,containingelementsfrombothcol1 andcol2.D.Theoperationcol1.containsAll(Col2)willnotmodifythecol1object. ” 相关考题