Collections in Java
Collections in Java
--        The Java Collections Framework is a collection of 
interfaces and classes which helps in storing and processing the data 
efficiently.
--  Collections in Java are used in almost every application.
--  Java 
Collections Framework is one of the core part of Java 
--  Collections provides an architecture to   store and manipulate the group of objects and data.
--  A Collection is a group of individual objects represented as a single unit 
Advantages of Java Collections Framework
Collections framework have following benefits:
1)  We
    need not to learn multiple ad hoc collection APIs in java 
2)  Reduced Development Effort 
3)  Increased Quality  
4) It provides standard interface for collections that fosters software reuse and also provides algorithms to manipulate data.
5) collection can grow and resizable
|  | 
| Collection chart | 
Classes and interface in collections.
List interface
1) HashSet class 
2) LinkedHashSet class 
3) TreeSet class  
4) EnumSet class
5) Shorted set --> TreeSet class
Map interface
4) EnumSet class
5) Shorted set --> TreeSet class
Map interface
1) HashMap class 
2) LinkedHashMap class
3) TreeMap class 
4) EnumMap class
5) IdentityHashMap class
Queue interface
4) EnumMap class
5) IdentityHashMap class
Queue interface
1) PriorityQueue class 
2) Deque interface --> ArrayDeque class
2) Deque interface --> ArrayDeque class

 
 
 
Comments
Post a Comment