Difference between Hash Table and Hash Map?
Answer Posted / santosh nayak
HashMap hm=new HashMap();
hm.put("s","s");
hm.put("a","a");
hm.put(null,"r");
hm.put(null,"t");
hm.put("e","e");
This is the code where we can allow multiple null key values
in HashMap.
| Is This Answer Correct ? | 1 Yes | 12 No |
Post New Answer View All Answers
What is the locale class in java programming?
Is special character in java?
What is arraylist e?
How many classes can any class inherit java?
which pattern is default in scanner package?
What are the main uses of the super keyword?
What restrictions are placed on method overriding in java programming?
how we can create packages in java?
Explain about the performance aspects of core java?
Can we override final method?
What is derived datatype?
Can you create an object of an abstract class?
What is difference between class and object in java?
What do you understand by garbage collection in Java? Can it be forced to run?
What is the base class in java from which all classes are derived?