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 a break statement and a continue statement?
Is singleton class thread safe?
How do you convert bytes to character in java?
What are kinds of processors?
What methodology can be employed to locate substrings inside a string?
What does %d do in java?
What does serializing data mean?
Is java se open source?
What is the final blank variable?
What are the different ways of creating thread?
What is the purpose of finalization in java programming?
String class is defined under which package in java?
is there a separate stack for each thread in java? : Java thread
Can you pass functions in java?
Do I need to import java.lang package any time? Why?