Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is the difference between HashMap and Hashtable

Answer Posted / arun rajesh

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.

Is This Answer Correct ?    54 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the maximum size of arraylist in java?

954


Is arraylist ordered?

1011


How do you check if a string contains only numeric digits?

1077


What is a numeric digit?

1044


What are the three parts of a lambda expression? What is the type of lambda expression?

989


What is the difference between size and length in java?

939


What is the requirement of thread in java?

1002


What is a generic type?

968


Can we write any code after throw statement?

1014


Is it possible to use Semaphore/ Mutex in an Interrupt Handler?

1039


Is java platform independent?

928


Can an object subclass another object?

1033


What are the steps that are followed when two computers connect through tcp?

949


Why is singleton not thread safe?

1013


Mention some interfaces implemented by linked list in java.

984