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 rules regarding quotation marks?
Are streams faster than for loops?
Differences between intermediate operations and terminal operations of java 8’s stream api?
What is repository pattern in java?
Do I need both jdk and jre?
Can the main method be declared final?
How can the static main method use instance variables?
Which type of stream is in java?
What is native api in java?
Do I need to install jre if I have jdk?
How does jpa repository work?
Is lambda functional programming?
What is ehcache in java?
What are the Advantages of java se 8 new features?
What is stateless class in java?