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 are the ways in which a thread can enter the waiting state?
What are the benefits of operations in java?
explain what is transient variable in java?
Why we used break and continue statement in java?
What are byte codes?
What do you mean by collectors in java 8?
Is vector ordered in java?
How do you compare arrays in java?
What do you know about the garbate collector?
Is 0 true or false in java?
What are the loops in java?
What is illegal identifier in java?
What is downcasting?
Is string is a keyword in java?
When do we use hashset over treeset?