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 does split function do in java?

539


Can we overload final method in java?

557


What is the difference between overriding and overloading in OOPS.

567


What is a vector in java?

578


what do you mean by stream pipelining in java 8? Explain

537






Explain java thread life cycle.

583


How do weakhashmap works?

593


Given a singly linked list, determine whether it contains a loop or not without using temporary space?

586


What is a conditional statement explain with example?

545


What is threaded programming and when is it used? : Java thread

535


What is wrapper class html?

531


Which is easier netbeans or eclipse?

614


Distinguish between a predicate and a function?

576


What is the difference in between cpp and java? Can u explain in detail?

610


Which number is denoted by leading zero in java?

815