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
Is void a data type?
Explain different types of wrapper classes in java?
What is difference between equals and hashcode method?
What ide should I use for java?
What is meant by data hiding in java?
Do loops java?
Difference between operator overloading and function overloading
What is difference between public static and void?
Define how objects are stored in java?
What is the differences between heap and stack memory in java? Explain
What is treeset in java collection?
Can a class have multiple constructors?
What language is java written?
What is "this" keyword in java? Explain
What is unmodifiable collection in java?