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 mdb in java?
How do you type the lambda symbol?
What is web xml java?
Which version of jdk is required for netbeans 8.0 2?
What about 'hostile applets'? : java security
What is cookie in java?
What services can invoke lambda?
What is stateless and stateful in java?
What is the difference between a jdk and a jvm?
What is savepoint in java?
What is lambda used for?
How do I open the java control panel?
What is numberformatexception in java?
What is dialect in java?
Why java?