So What Do we Do with a Collection?

So What Do we Do with a Collection?

There are a few basic operations you will normally use with collections:

  1. Add objects to the collection.
  2. Remove objects from the collection.
  3. Find out if an object (or group of objects) is in the collection.
  4. Retrieve an object from the collection (without removing it).
  5. Iterate through the collection, looking at each element (object) one after another.

By:umang
Date:2013-03-09 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related scjp1.5 chap8 Links

scjp1.5 chap8 interview questions and answers for experienced and fresher