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 the difference between array list and vector in java?
What is the use of private static?
When is the garbage collection used in Java?
What are different types of control structures?
Explain the importance of finalize() method.
What is super in java?
Explain different types of thread priorities ?
How arrays are stored in memory in java?
Is assembly language a low level language?
Explain hashset and its features?
Why use string handling in Java?
Define max and min heap, also the search time of heap.
What is serial version uid and its importance in java?
What is thread safe singleton?
What is difference between equal and == in java?