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 static blocks and static initalizers in java ?
How do I know if java is installed?
when to use ArrayList and when to use HashMap in webApplication.
Which of the following is not an isolation level in the JDBC
What is the purpose of the finally clause of a try-catch-finally statement in java programming?
What is the functionality of the stub?
What is a parameter used for?
What does bitwise or mean?
What is object of class in java?
Why is it called a string?
What do you understand by the term polymorphism?
Can we create an object if a class doesn't have any constructor ( not even the default provided by constructor ) ?
How many bits is a float?
What are operators and its types?
What are methods?