![]() Here are the subinterfaces of the Collection Interface: List Interface Subinterfaces of the Collection InterfaceĪs mentioned earlier, the Collection interface includes subinterfaces that are implemented by Java classes.Īll the methods of the Collection interface are also present in its subinterfaces. ![]() These interfaces may also have subinterfaces. The framework includes other interfaces as well: Map and Iterator. The Collection interface is the root interface of the collections framework. ![]() People often get confused between the collections framework and Collection Interface. To learn more, visit: Java Collection Interface Collections Framework Vs. Java does not provide direct implementations of the Collection interface but provides implementations of its subinterfaces like List, Set, and Queue. The Collection interface is the root interface of the collections framework hierarchy. Let's learn about the commonly used interfaces in brief in this tutorial. We will learn about these interfaces, their subinterfaces, and implementation in various classes in detail in the later chapters. These interfaces include several methods to perform different operations on collections. The Java collections framework provides various interfaces. The Java collections framework provides a set of interfaces and classes to implement various data structures and algorithms.įor example, the LinkedList class of the collections framework provides the implementation of the doubly-linked list data structure.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |