This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes methods of collection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "methods of collection" Watch "methods of collection" New topic

methods of collection

prajkta patil
Ranch Hand

Joined: Nov 13, 2004
Posts: 49
given two collection objects referenced by col1 & col2,which of these stmts r 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 new object.
d.the operation col1.containsAll(col2) will not modify the col1 object.

if somebody knows about these methods pls tell me about that or send the link.
Simon Cockayne
Ranch Hand

Joined: Dec 09, 2000
Posts: 214

Check out

In th "Classes" panel bottom left, scroll down till you see "Collection", click on it and the right-hand pane will show you the info on "Interface Collection".

You will find your methods in the method summary.



SCJP 1.4 (93%)<br />SCJD (In progress. It can run, but it can't hide...)
I agree. Here's the link:
subject: methods of collection
Similar Threads
SQL Question
Exam Qs- collection- help!