Java collection - quick overview

Description

A brief explanation on the Java collection - quick overview

Shared by: Santhosh_Mandadi
-
Stats
views:
38
posted:
6/23/2012
language:
English
pages:
1
Document Sample
scope of work template
							                                     http://www.javaservletsjspweb.in
                                         Santhosh Reddy Mandadi

Tuesday, April 24, 2012
Web URL: http://www.javaservletsjspweb.in/2012/04/what-is-java-collection-quick-overview.html


What is a Java collection - quick overview
We can use collection classes and objects to handle group of objects (other than arrays). Java has a
collection frame work to deal with collections.

Collection framework: A collection framework is a class library to handle group of objects. It is
implemented in java.util package.

Collection class: A collection class or container class is a class whose object can store a group of other
objects.

Collection object: A collection object is an object that stores a group of other objects. It is also called
container class object. The collection object stores objects references.

References of other objects are available in collection objects. All the classes in collection framework
have been divided into 3 categories.

1. Set: A group of elements (objects). A class which implements java.util.Set interface is called as a set.
Eg: HashSet, LinkedHashSet, TreeSet.

2. Lists: Collection of elements (objects). A class which implements java.util.List interface is called as a
List. Eg: LinkedList, ArrayList, Vector.

3. Maps: A map stores elements in the form of key-value pairs. Eg: Hashtable, HashMap

I'll details about each type of collection in further posts... please checkout...

						
Related docs
Other docs by Santhosh_Mandadi
Software tricks and websites - Telugu
Views: 17  |  Downloads: 5
Zac browser
Views: 12  |  Downloads: 0
Safe passwords (Telugu)
Views: 7  |  Downloads: 0
Citrify - online photo editor (Telugu)
Views: 33  |  Downloads: 1
Java treads
Views: 11  |  Downloads: 0
2 clicks are enough - Telugu
Views: 5  |  Downloads: 0
When your new computer is running slow
Views: 3  |  Downloads: 0
Everything search engine - Telugu
Views: 3  |  Downloads: 0
Java interview question and answers
Views: 30  |  Downloads: 1
Windows 7 Phone edition
Views: 4  |  Downloads: 0