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 @qualifier in java?
What is the difference between lambdas and delegates?
What is the difference between the boolean & operator and the && operator?
Which is better openjdk or oracle jdk?
Can we use lambda without functional interface?
What is property file in java?
What is dependency injection in java?
What is the difference between a jdk and a jvm?
What is use of jpa?
What is spliterator in java se 8?
What is @override annotation in java?
What is the use of flatmap?
What is dto layer in java?
Can java program run without jdk?
How can I write a program that takes command line input?