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
What is Map,List,hashtable,ArrayList and difference between them??
What are the risks in java security? : java security
Is openjdk the same as jdk?
Do I really have to type in the programs in the book to try them out?
Why java is better than node.js?
What is messaging queue in java?
What is property file in java?
Why bean class is used in java?
Can I use openjdk for commercial?
Is it correct to say that using parentheses can only change?
What is a flatmap?
What is stateful in java?
What is exe file in java?
What is dialect in java?
How do I run a project in netbeans?