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
How do you use equal in java?
What is the significance of listiterator?
Why deletion in linkedlist is fast than arraylist?
What is the purpose of checked and unchecked exceptions in JAVA?
What are different types of control structures?
What is singleton math?
What is data type in java?
What does || || mean in math?
What are keywords give examples?
What is instance means in java?
Explain reverse a linked list recursive java solution?
Is null a value?
What is a percentage sign called?
Why does java doesnt suuport unsigned values?
Does java vector allow null?