what is the return type of key set in java code example Example: map.keyset in java Method returns a set having the keys of the hash map.