is it possible to add a object in a HASHMAP
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / ravikiran
Yes we can add Object as a value inside HashMap
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / 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 |
How do you bind variables?
what is the difference between a threads start() and run() methods? : Java thread
State two differences between C and Java.
Difference between flush() and commit() in hibernate?
Explain different types of wrapper classes in java?
Why collection is called framework in java?
What are different types of states exist for a thread?
What is the difference between pass by reference and pass by pointer?
What are the concepts of 'OOPS'?
What is hashing principle in java?
Where are register variables stored?
Can arraylist hold different types java?