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
Can we override constructor in java?
In which order the iterator iterates over collection?
What is boolean data type in java?
What is thread synchronization in java?
Is array a class in java?
Define a package.
Explain the difference between jvm and jre?
What is Classloader in Java?
Does java support Operator Overloading?
How does finally block differ from finalize() method?
Why lambda expression is used in java?
Can a static class have a constructor java?
What is the importance of main method in Java?
How do you convert bytes to character in java?
Howto get an object that will perform date & time calculations then format it for output in some different locales with different date style.can ne1 tel me the answer of this question.pls