• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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.
 
and POOF! You're gone! But look, this tiny ad is still here:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic