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
What does split function do in java?
Can we overload final method in java?
What is the difference between overriding and overloading in OOPS.
What is a vector in java?
what do you mean by stream pipelining in java 8? Explain
Explain java thread life cycle.
How do weakhashmap works?
Given a singly linked list, determine whether it contains a loop or not without using temporary space?
What is a conditional statement explain with example?
What is threaded programming and when is it used? : Java thread
What is wrapper class html?
Which is easier netbeans or eclipse?
Distinguish between a predicate and a function?
What is the difference in between cpp and java? Can u explain in detail?
Which number is denoted by leading zero in java?