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 are the topics in core java?
How can the checkbox class be used to create a radio button?
What are the advantages of arraylist over arrays?
Does sprintf add a null terminator?
How does system arraycopy work in java?
What are java methods?
What is the difference between Java Program Constructor and Java Program Method, What is the purpose of Java Program constructor Please Explain it Breafily?
Under what conditions is an object’s finalize() method invoked by the garbage collector?
What should I import for arraylist in java?
How hashset works internally in java?
What is the main difference between java platform and other platforms?
What is the purpose of tostring() method in java?
Can we override the private methods?
What are the advantages of compiled language?
How to use string tokenizer class.