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 object in java?

993


What are the advantages of java over C++?

1201


What are the important features of Java 11 release?

1118


Do you know why doesn't the java library use a randomized version of quicksort?

955


Is java code slower than native code?

1074


How do you test a method for an exception using junit?

1216


How many threads does a core java have?

1078


What is abstract class? Explain

1051


Does every java program need a main?

1006


Difference between arraylist and vector.

1133


What are the different approaches to implement a function to generate a random number?

1063


Explain the use of sublass in a java program?

1028


What is java beans?

1004


What are the ways to instantiate the class class?

1106


Can we use catch statement for checked exceptions?

971