Once you attempt the question then PrepInsta explanation will be displayed.
Collection interface provides add, remove, search or iterate while map has clear, get, put, remove, etc.
Map interface is the HashMap. It is a hash table based implementation of the Map interface. It implements all of the Map operations and allows null values and one null key. Also, this class does not maintain any order among its elements.
Login/Signup to comment