Answer Posted / venkat
yes we can add object in Hashmap
like the example is
ArrayList list=new ArrayList();
list.add(10);
HashMap map=new HashMap();
map.put(list,"13");
here list is object
| Is This Answer Correct ? | 15 Yes | 0 No |
Post New Answer View All Answers
How do you sort a list in java?
Explain importance of finally block in java?
what do you mean by marker interface in java?
Where is the find and replace?
Should a main method be compulsorily declared in all java classes?
What is the default value of float and double datatype in java?
Why java is used everywhere?
What are different exception types exceptions available in java ?
How do you use substring in java?
Explain the difference between comparator and comparable in java?
What is the requirement of thread in java?
What is unicode used for?
What is an array length?
What is variable argument in java?
Explain the selection sort algorithm and state its time complexity?