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 |
what type of questions asked for barclays technologies pune please send urgent
What is meant by JVM? Is JVM platform independent or not?
What isan abstract class and when do you use it?
How do you add spaces in java?
Relationship between an event-listener interface and an event-adapter class?
How do you make an arraylist empty in java?
Can we print null in java?
how we can write the string concatenation program in java.
what r advatages of websphere? & how to deploy?
Is an empty arraylist null?
How do you escape in java?
Why vector class is used?