Confued about Collections framework
2 posts in topic
Flat View  Flat View

Posted By:   Anonymous
Posted On:   Wednesday, January 2, 2008 09:58 AM


I have doubt in collections..i am very new to this

what is collection and how it works and i read one point

about collection it consist of three parts

interface,implementations and algorithm what is this ?

can anyone help me to clear this doubt..

thanks in advance

Re: Confued about Collections framework

Posted By:   rahul123  
Posted On:   Tuesday, December 17, 2013 08:57 PM

Collection :- If you want to represent a group of indivudal element into a single unit then we should go for collection. 
Map:- if we want to represent a group of indivudual element into a key value pair then we should go for Map interface .
collection & Map both are the root element .
collection ,
List, Set, Queue
List- ArrayList, LinkList, Vector-Stack
Set-HashSet,LinkedHashSet, SortedSet, NavigableSet, TreeSet

Re: Confued about Collections framework

Posted By:   harikrishna_harkala  
Posted On:   Sunday, January 13, 2008 06:34 AM

collections mainly used to store different types of objects as a single entity.
Coolection is a interface.list and set interfaces extends colletion interface.collection is a base interface for all collection classsesand interfaces.In this we have
1)arraylist class.2)linked list
3) vector class.4)stack. these clsses implements list interface.
Set implemented classess are1)hashset2)linkedhashset
Sorted set implemented classses are1)Tree Set.
Another on emap inter faceimplemented classes are 1)hashmap2)linked hashmap3)hashtable.
there are slight differnces are there. if you go through a book khalid moghul you will get neat expla nation.
About | Sitemap | Contact