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
What is native method in java?
Mention some features of java?
Can we have more than one package statement in the source file?
What is public static?
What is method in research paper?
What are access specifiers available in java?
Can each java object keep track of all the threads that want to exclusively access it?
What is advantage of java?
Why isn’t there operator overloading?
What exactly is a .class file?
What is function overriding and overloading in java?
What is the byte range?
What variables are stored in stack?
What do you mean by buffering?
How to sort numbers in java without array?