• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

methods of collection

 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.........
 
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic