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 / chandan phukan

Two main differences between Hastable and HashMap are

1. Hashtable is synchronised but HashMap is not.
2. Hashtable does not allow "null" key but HashMap allows
"null" Key.

However one point to remember is that only one "null" key is
allowed in HashMap but multiple "null" values are allowed in
HashMap.

Is This Answer Correct ?    75 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a constructor overloading in java?

998


Is there any way to skip finally block of exception even if some exception occurs in the exception block?

1015


How do you bind variables?

1039


Difference between character constant and string constant in java ?

973


What is pre increment and post increment in java?

956


What is the difference between jdk, jre, and jvm?

1055


What is the difference between the ">>" and " >>>" operators in java?

945


Is alive in java?

905


What will be the output of round(3.7) and ceil(3.7)?

1076


What is blank final variable?

1029


What is classname class in java?

1006


Is null false in java?

1152


Is arraylist an object in java?

1075


Does java support function overloading, pointers, structures, unions or linked lists?

1057


What is a flag and how does it work?

950