What are the basic interfaces of Java Collections Framework?

Solution:

Java Collections Framework provides a well-designed set of interfaces and classes that support operations on a collections of objects. The most basic interfaces that reside in the Java Collections Framework are:

  • Collection, which represents a group of objects known as its elements.

  • Set, which is a collection that cannot contain duplicate elements.

  • List, which is an ordered collection and can contain duplicate elements.

  • Map, which is an object that maps keys to values and cannot contain duplicate keys.

    1.jpg

0 answers