Answer Posted / rice
HashMap is a class that implements Map interface.
HashMap underlined data structure is Hash table.
If we want to describe the group of objects as key ,value
pairs then we go for HashMap class.
key are not duplicated but value can be any thing.
null insertion is possible.
insertion order is not preserved.
HashMap hm=new HashMap();
hm.put(1, "rice");
hm.put(3, "rice");
hm.put(2, "shine");
System.out.println(hm);
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
How do I find jre version?
Which instutute is offering course for rhino jain slee
Can a dead thread be started again?
Differences between intermediate operations and terminal operations of java 8’s stream api?
What is java web application?
What is meant by framework in java?
Are there tuples in java?
Can a method be static and synchronized?
What is http session in java?
I have deployed a .war file in my application server comprising of struts and hibernate.If i want to change the "dialect" property of hibernate cfg file how can i change(I have only .war file)... Thanks in advance
In a barber shop there are 2 doors. customer come in 1 door, leave in other. minimum # of chairs. barber spend his life in cutting. always barber can cut 1 customer. few chairs in the shop. if barber busy customer waits, if chairs full, customer leave. if no customer, barber sleeps. treat barber and customer as 2 threads. you can use Semaphore class with arrive and depart and count as parameter.
when i send the request to the JSP page it will print as it is and why? and how to solve this problem please inform me that solution
Which class is the superclass of every class?
what is the package for freshers in valuelabs.
Which method is used to create the daemon thread?