Given two collection objects referenced by c1 and c2, which of these statements are true?
Select 2 correct options
(1) c1.retainAll(c2) will not modify c1 (2) c1.removeAll(c2) will not modify c1 (3) c1.addAll(c2) will return a new collection object, containing elements from both c1 and c2 (4) For: c2.retainAll(c1); c1.containsAll(c2); 2nd statement will return true (5) For: c2.addAll(c1); c1.retainAll(c2); 2nd statement will have no practical effect on c1
the given answers are 4 and 5? I am not sure all this options in coding way? Please help me to start working on this?Any ideas?
whenever we say b2 = something ; what the compiler really expects is a 2d-array so when we say b2 = b; we are actually passing a 2d-array reference the dimensions of the array to which this reference points does not matter