-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Map,List,Set
PostPosted: Thu Jun 28, 2007 2:45 am 
Newbie

Joined: Thu Jun 21, 2007 6:44 am
Posts: 9
Location: chennai
Why we use Map,List,Set...

why we cant use any one of the collection for all problems

where will it differ...

could any one please replay....


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 28, 2007 4:12 am 
Newbie

Joined: Wed Oct 18, 2006 1:32 am
Posts: 3
Maybe you can read the javadoc of List, Set, Map to know when to use them.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 28, 2007 4:12 am 
Newbie

Joined: Tue Jan 24, 2006 10:42 pm
Posts: 3
Because the different collection types have different uses. For e.g. a list can be ordered, a set guarantees uniqueness. You use the different collection types based on your requirements.

Have a read of chapter 6 of the reference documentation for more details.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.