• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

methods of collection

 
prajkta patil
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic