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 use of servlet in java?
How can the static main method use instance variables?
Where is java installed?
Explain suspend() method under thread class>
Write a class which checks whether a given number is prime or not. Write another class to implement the behavior of previous class and print the series of twin prime number upto a given range.
In an htm form i have a button which makes us to open another page in 15sec.how will you do that?
What is java persistence api used for?
What is java aop?
How do I enable javascript?
What is meant by code profiling?
What is jpa implementation?
Do I need both jdk and jre?
How does java handle integer overflows and underflows?
Is jdk an ide?