Entry interface

• Each key-value pair is called one entry without existing Map objectthere is no chance of existing entry object hence interface entry is define inside Mapinterface(inner interface).
Example:
interface Map
{
……………..;
……………..;
……………..;
interface Entry
{
Object getKey();
Object getValue(); on Entry we can apply these 3 methods.
Object setValue(Object new);
}
}

Leave a Reply

Your email address will not be published. Required fields are marked *