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
When can an object reference be cast to an interface reference in java programming?
Can a abstract class be declared final?
Why are parameters used in functions?
What are different types of constants?
What is package private scope in java?
List primitive java types?
What is byte [] in java?
Can interface be private in java?
What is the += operator called?
What is scope & storage allocation of global and extern variables? Explain with an example
How do generics work in java?
What is the benefit of using enum to declare a constant?
What is the difference between delete and delete[]
Explain about data types?
Difference between abstract and concrete class ?