aspose file tools*
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
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "methods of collection" Watch "methods of collection" New topic
Author

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.
thanks.........
Simon Cockayne
Ranch Hand

Joined: Dec 09, 2000
Posts: 214
Hi,

Check out http://java.sun.com/j2se/1.4.2/docs/api/

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.

Cheers,

Si.


SCJP 1.4 (93%)<br />SCJD (In progress. It can run, but it can't hide...)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: methods of collection