I was being interviewed recently, where I was asked can we access object stored in a hashmap , if the key to that particular object stored in the HashMap is not known.
The API allows you to retrieve all values from the Map. It also has a method to check whether a particular object is set as a value of the Map. Check java.util.Map.