Connect with us

Blog

Map.Entry interface in java. Example with code.

Map.Entry

Entry

In the Map interface in Java, a single key-value pair within the map is called an Entry. The Entry interface is present within the Map interface (inner class) and have  methods for retrieving both the key and the value associated with that entry. Map is considered as a group of entry Objects, without existing Map object there is no chance of existing entry object this is the reason interface entry is define inside Map interface(inner interface).

More in Blog