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
Explain about public and private access specifiers?
what is meant by encapsulation?
What is covariant return type?
Why we override equals() method?
Explain about method local inner classes or local inner classes in java?
How to make a read-only class in java?
What is a substring of a string?
what are Hostile Applets?
What are the fileinputstream and fileoutputstream?
Write a java program to print fibonacci series?
What is methodological theory?
who can i handle multiple client in RMI
What is the purpose of the system class in java programming?
What is the instance of an object?
Can we return null in java?