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 clear an arraylist in java?
What is meant by bytecode?
How to set the permissions to a file in java?
What is string in java? String is a data type?
Differences between C and Java?
what are Hostile Applets?
Which oo concept is achieved by using overloading and overriding?
What is preflight request?
What are the special characters?
What are the types of collections in java?
What are keywords in java?
What do you mean by garbage collection used in java?
Does java set allow duplicates?
What is singleton pattern?
What are access specifiers available in java?