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
Why are getters and setters used?
What is a return in java?
what is synchronization? : Java thread
What are default methods ?
Name the components that are termed to be Heavy-weight component but available in Light-weight components?
What is a layout manager and what are different types of layout managers available in java awt?
Mention a package that is used for linked list class in java.
how come we know the object is no more used in the class?
What is reverse function?
What do you mean by exception handling in Java?
Write a function to print Fibonacci series and Tribonacci series?
What is the access scope of protected access specifier?
What is type safety in java?
Why java is called not pure object oriented language?
Explain notifyall() method of object class ?