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
Which variables are stored in stack?
What are serialization and deserialization?
What is a default method?
Can we use return in constructor?
What are the main features of java?
What is procedure overloading?
What is a jagged array in java?
What is the difference between method and means?
What is the difference between the paint() and repaint() methods?
Can an interface extend a class?
What is bytecode verifier?
how to create constants in java?
What is java util hashmap?
How do you convert string to int in java?
Explain how hashmap works?