What is the function of the containsKey(Object key) and containsValue(Object value) methods of hte Map interface?

What is the function of the containsKey(Object key) and containsValue(Object value) methods of hte Map interface?



Answer: The first returns true if the provided key exists in the map, while the second returns true if the provided value exists in the map.


Learn More :

Data Structures

Learn More Multiple Choice Question :