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 |
Can we sort set in java?
explain the classification of exception and hoew to handle the exceptions
What is null in java?
What is difference between arraylist and list in java?
Explain the purpose of garbage collection in Java?
What is a condition in java?
What is the Scope of Static Variable?
List methods available in Java Queue interface
What is boolean example?
Explain about procedural programming language or structured programming language and its features?
What is serialization in java?
How many types of exception can occur in a java program?