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
If you’re overriding the method equals() of an object, which other method you might also consider?
How do I know if I have jre or jdk?
How do I open my java console?
How do I run a project in netbeans?
Is jdk an ide?
What happens when the parent process of a child process exits before the child ?
In which language eclipse is developed?
Why are lambda functions called lambda?
Why do we need new date and time api in java se 8?
What are the advantages of java sockets?
What are the advantages of java 8’s date and time api over old date api and joda time api?
explain how java se 8 data and time api solves issues of old java date api?
What is jep in java?
What is resultsetmetadata in java?
Is java built on c?