India,Desi,Discussion Forum Board Astrology, Jobs

Go Back   India,Desi,Discussion Forum Board Astrology, Jobs > Career and Jobs > Interview Tips and Tricks
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-08-2008, 10:18 AM
bharath bharath is offline
Member
 
Join Date: Mar 2008
Posts: 76
Default Java Interview - HashMap and Map?

1 .What is HashMap and Map?

2. Difference between HashMap and HashTable?
Reply With Quote
  #2 (permalink)  
Old 05-10-2008, 10:03 AM
ram101 ram101 is offline
Senior Member
 
Join Date: Jun 2007
Posts: 270
Default

1.Map is Interface and Hashmap is class that implements that.

2.The HashMap class is roughly equivalent to Hashtable, except that it is unsynchronized and permits nulls. (HashMap allows null values as key and value whereas Hashtable doesnt allow). HashMap does not guarantee that the order of the map will remain constant over time. HashMap is unsynchronized and Hashtable is synchronized.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



AddThis Social Bookmark Button
All times are GMT. The time now is 08:03 PM.


Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.0.0