Answer Posted / 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 |
Post New Answer View All Answers
Can a class have multiple superclasses?
What are methods?
Write an algorithm program in java for the following question.. 1) S is a set of integers.X is an integer obtained by sum of two digits in S. Write logic for whether or not the X is from the S. The time of algorithm should not exceed o(n logn).
What are the properties of thread?
What is off heap memory?
What does system out println () do?
In a container there are 5 components. I want to display all the component names, how will you do that?
What exactly is methodology?
How do you declare an array that will hold more than 64KB of data?
Why multiple inheritance is not supported by java?
What is instance synchronization?
How are multiple inheritances done in Java?
Can we overload the main() method?
What is the use of 'super' keyword inside a constructor?
What is classes in java?