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 invoke a method?
Can memory leak happen java?
What is meant by call by reference?
How many types of flags are there?
Can you start a thread twice in Java?
I want to store more than 10 objects in a remote server? Which methodology will follow?
How can you write a loop indefinitely in java programming?
What are computer functions?
Is 0 a prime number?
What is the difference between method overriding and overloading?
What are exception handling keywords in java?
When should I use singleton pattern?
What are the different types of java?
What are filterstreams?
Highest level event class of the event-delegation model?