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
How do I write a self declaration?
What if constructor is protected in java?
Are private methods final?
How many ways can you break a singleton class in java?
What are different data structures in java?
What is the disadvantage of java?
What is the final keyword denotes?
What classes of exceptions may be thrown by a throw statement?
What are the advantages of java over cpp?
What are accessor methods in java?
What is the difference between jdk, jre, and jvm?
What is a classloader in java?
A person says that he compiled a java class successfully without even having a main method in it? Is it possible?
What is methods and methodology?
Can a constructor have different name than a class name in java?