dcsimg
set and map
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   sudhakar_rao
Posted On:   Monday, September 8, 2003 12:30 AM

what are differences between set and map ?

Re: set and map

Posted By:   AlessandroA_Garbagnati  
Posted On:   Monday, September 8, 2003 12:38 AM

Hi,

The java.util.Set interface represent a collections with no duplicate elements.

The java.util.Map interface represent a object that "maps" keys to values. A map cannot contain duplicate keys and each key can map to at most one value.


Additional info can be found by browsing the FAQs since this is a topic that has been already covered.

About | Sitemap | Contact