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
If we don’t want some of the fields not to serialize how to do that?
What is meant by main method?
Is treeset sorted in java?
How can we make copy of a java object?
Is null a string in java?
Is java a compiler?
What is string manipulation?
What is the core java?
How do you square a number in java?
What is static block?
What is the abstract class?
Can an object be null?
What restrictions are placed on method overriding in java programming?
What is the char data type?
What is finalize method?