Java Collection Hierarchy
The collection is a framework in java. It contains some of the most used classes which are present in the interfaces. Collection interface mainly has 3 child interfaces and these are as follows. Image Source 1. List It contains an order of all the objects. This interface also helps you to have a dynamic size …