is it possible to add a object in a HASHMAP
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / ravikiran
Yes we can add Object as a value inside HashMap
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / 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 |
What are the legal operands of the instanceof operator?
How many boolean functions are there?
Can you give names of Container classes?
Why bytecode is called bytecode?
What is bytecode verifier?
What is the most important feature of java? What is an interface?
What is token in java?
How to sort list of list in java?
Hi can u pls tell me what is the use of marker interface. Iknow what is marker interface but what ability will the object get by implementing this.
Why is prepared Statement, Callable Statement used for? What is the need of Batch updates?
What is time complexity java?
Explain public static void main(string args[]) in java.