Can we place the any object to key attribute of
HashMap<key,value>?
Answer Posted / ramarao katta
yes, we can place any object as key value but that object
must and should implement the hashcode method.
Is This Answer Correct ? | 5 Yes | 2 No |
Post New Answer View All Answers
What is the difference between stringbuffer and stringbuilder class?
What is the use of math abs in java?
How do you reverse sort a list in java?
What is the multi-catch block in java?
What is the synonym of framework?
What are the advantages of assembly language?
What is the final keyword?
Name few java 8 annotations ?
When do I need to use reflection feature in java?
Is alive method in java?
What is a final class in java?
Is a method a function?
What is the purpose of format function?
what is the role of xml in core java?? and how we can use it?? can somebody give a sample program with explanation and from where i can read more about xml?????
Explain wait(), notify() and notifyall() methods of object class ?