Answer Posted / janardhan
yes we can add object in Hashmap
example:--
ArrayList l=new ArrayList();
l.add(10);
HashMap map=new HashMap();
map.put(l,"13");
here l is object
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
How to perform selection sort in java?
What are the states of thread in java?
What is the hashcode () and equals () used for?
What is class forname?
Which access specifier can be used with class ?
What is the scope or life time of instance variables?
Can you pass by reference in java?
What are keyboard events?
What is the difference between private & public & friendly classes?
What are the major advantages of internal iteration over external iteration?
Tell me the latest versions in java related areas?
What is a parameter example?
What is role of void keyword in declaring functions?
What are the six ways to use this keyword?
how to create constants in java?