In the HashMap, we know the values but we dont know the key,
then how can we get the key from HashMap ?????

Answer Posted / siva thimmannagari

by using the hashcode() method

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is array initialization in java?

699


What’s the difference between applets and standalone program?

743


How do you format in java?

773


What is the structure of java?

746


What is method overriding in java ?

858


What happens if I remove static from main method?

756


Is hashset ordered?

761


Is ++ operator thread-safe in java?

879


What is the size of string?

763


Is int primitive data type?

737


What is difference between static variable and global variable?

768


What is final variable?

692


What is the use of accept () method in java?

806


What is array pointers ?

805


what is the difference between future and callable interface in java?

865