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 the difference between lambdas and delegates?
What is xml file in java?
Which framework is best for rest api java?
What is meant by pass by reference and pass by value in java?
What do you understand by numeric promotion?
Is jprofiler open source?
What are the new features about Java se 8 ?
Name primitive java types.
What about products that claim to block java applets at a firewall? : java security
What are anonymous methods and lambda expression?
What is jsr in java?
What is native class in java?
Why is lambda expression used?
What is predicate in lambda expression?
What is ehcache in java?