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 |
How do you get the length of a string in java?
What is stringjoiner ?
how to handled exceptions & erros in ejb?
What is substring in java?
How is Garbage collection done in Java?
Is double bigger than float?
What is the main difference between java platform and other platforms?
Write a program to print all permutations of string?
we have syntax like for(int var : arrayName) this syntax is to find whether a number is in the array or not.but i want to know how to find that number's location.
what is function overloading in java?
0 Answers Tavant Technologies, TCS, Virtusa,
What releases of Java technology are currently available? What do they contain?
Explain the JDB in depth & command line.