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
What is default locale java?
Define how can we find the actual size of an object on the heap?
What are different type of exceptions in java?
What is the exact difference in between Unicast and Multicast object? Where will it be used?
Explain how hashmap works?
How do you start a new line in java?
How do you reverse a word in java?
Do loops java?
What is the destroy method?
Can subclass overriding method declare an exception if parent class method doesn't throw an exception?
What is a boolean structure?
how to prepare for IT Officers Interview in Banks
Why Java is not pure Object Oriented language?
What is java oops?
Write code of any action class?