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 are the benefits of a jar file?
What is java lang noclassdeffounderror?
Is eclipse a jdk?
What is map and flatmap?
What is type_scroll_insensitive in java?
What about 'hostile applets'? : java security
What are the risks in java security? : java security
What services can invoke lambda?
Is java secure? : java security
What is stateless and stateful in java?
What is a java executable jar file?
What is mq in java?
What is @qualifier in java?
What about products that claim to block java applets at a firewall? : java security
I run a web server. Am I at risk? : java security