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

Can java object be locked down for exclusive use by a given thread?

675


Which collection is thread safe in java?

600


What is the difference between exception and error in java?

579


What is rule of accessibility in java?

639


How do I know if java is installed?

629






What is contractor means and methods?

654


What is the use of :: in java?

667


What is a subsequence of a string?

662


Explain what do you mean by functional overloading in java?

653


Is linkedlist thread safe in java?

666


difference between byte stream class and character stream class?

4177


Is hashset sorted in java?

762


What is quick sort in java?

659


How do you reverse a string in java?

701


Can vector have duplicates in java?

595