Answer Posted / brijendra-java (xavient)
HashMap is the implementaion of Map interface.
HashMap is key value pair storage concept.
HasMap does not allow duplicate key but value may be any
thing.
HasMap allow both key and Valuea as NULL.
HasMap is the Unordered collection.
When we change the iteration of HasMap then it give
concurrent Modification error.
HasMap is NonSyncronised class.
HashMap hMap = new HashMap();
hMap.put(Null, Null);
hMap.put(1, a);
hMap.put(2, b);
hMap.put(3, c);
system.out.println("Size"+hMap.size());
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How do I run a java program from the command line?
What is the resourcebundle class?
Why doesn’t the main method throw an error with no arguments?
What is meant by java se?
Explain the encapsulation principle.
What is gwt in java?
What is numberformatexception in java?
How many types of jdk are there?
What is hql in java?
What is the use of entity class in java?
What are tags in java?
Is jdk required for netbeans?
What is stateless and stateful in java?
Is java a framework?
What is transient in java?