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
Why doesn't lsdou work under windows nt? : java security
What is java bean class?
What is meant by pass by reference and pass by value in java?
What are the differences between java’s old java date api and java 8’s date and time api?
What is @override annotation in java?
How do I install java re?
What is the resourcebundle class?
What is the use of jprofiler?
What is lambda value?
What is jndi datasource in java?
i have client interview in TCS.client is CITI BANK.how to face it,what type of questions they will ask,please tell send me to kumar525job@gmail.com
What is setstring method in java?
Which is best framework in java?
Can we extract main method from another class?
Topic- looping,function overloading,nesting ,polymorphism. Aim - to write a function with a name buzz-buds,that will check whether the given numbers are buddies or not on the basis of no. of parameters passed during function calling.