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 / suresh

HashMap hm=new HashMap();
hm.put("1","11");
hm.put("2","22");
hm.put("3","33");
hm.put("4","242");
hm.put(null,null);
hm.put(null,null);
HashMap also allow more null values

Is This Answer Correct ?    24 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the topics in core java?

1020


How can the checkbox class be used to create a radio button?

992


What are the advantages of arraylist over arrays?

1055


Does sprintf add a null terminator?

1059


How does system arraycopy work in java?

1073


What are java methods?

1055


What is the difference between Java Program Constructor and Java Program Method, What is the purpose of Java Program constructor Please Explain it Breafily?

1011


Under what conditions is an object’s finalize() method invoked by the garbage collector?

996


What should I import for arraylist in java?

996


How hashset works internally in java?

1031


What is the main difference between java platform and other platforms?

1026


What is the purpose of tostring() method in java?

1100


Can we override the private methods?

960


What are the advantages of compiled language?

1040


How to use string tokenizer class.

1149