Blog

Map.Entry interface in java. Example with code.

Published on

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).

Popular Posts

Copyright © 2024 javadsa.com