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 / regalla naresh reddy

Hash Table is a legacy Class Whereas HashMap belongs to the
collections package.

HashMap allows null key and values..but it allows only one
null key and multiple null values...Whereas the HashTable
wont allow the null key and values..

Is This Answer Correct ?    15 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which list is sorted in java?

1027


What is function and method in java?

946


Does unicode support all languages?

1027


Where will it be used?

1937


What is the default access specifier for variables and methods of a class?

1200


How can we run a java program without making any object?

1042


How do you override a variable in java?

1137


Does constructor be static?

1031


When will you define a method as static?

1091


What is mnemonic in assembly language?

1069


What is finalize()? Is finalize() similar to a destructor?

963


What is meant by collection in java?

1058


How do you add spaces in java?

1004


What does java final mean?

1028


Is it correct to say that due to garbage collection feature in java, a java program never goes out of memory?

1015