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 are the different conditional statements?

563


What is a newline character in java?

566


What is sortedset in java?

578


What is java regex?

536


What’s the difference between applets and standalone program?

534






What is parsing and its types?

591


What is contract between hashcode and equal method?

576


What is nested class?

573


What is the difference between the ">>" and " >>>" operators in java?

513


What is the difference between the file and randomaccessfile classes?

539


How to sort an unsorted array in java?

615


Can we extend singleton class in java?

552


Why is stringbuffer thread safe?

572


Is a boolean variable?

523


What is the locale class in java programming?

531