• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Vector , Map ,set

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can anyone help me on how does vector,Map,set classes work on.
A detail explaination is needed
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi Indu,
what ever i know regarding vector,set and Map. to my knowlede,
hope so they are almost correct.
vector - this is class implementing from list interface,and can
increase size dynamically ,this is safe in use of threads as it supports for synchronization.this will give U in order(not soreted).allows duplicate of elements.
Set is an interface extending from Collection interface,doesnot allow duplicacy of elements.and this was not ordered.(it allow
a null value i think this is not sure).
Map is an interface ,which has both keys and values .
keys are not allowed for duplication,but values are allowed.
(null key and null value are allowed i think ).this is not ordered.but this is mainly used for fast retrival of data.
hope this can understand u, a litle more knowledge is reqired
that is also i was looking for.
for a specific key U get corresponding value.
 
Indu mathy
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
will there be questions on Vector,Map and Set in Java2 exam
reply
    Bookmark Topic Watch Topic
  • New Topic