![]() ![]() ![]() List : It handles the sequential list of objects. In which all except Map are inherited from interface. The whole Java collection framework is divided into four interfaces – List, Queue, Set and Map. is the root level interface of the Java collection framework.ģ) What are the four main core interfaces of the Java collection framework? ![]() The collection framework is the answer to that.Ģ) What is the root level interface of the Java collection framework? Hence, there needed a central and unifying theme to handle the group of objects. The way you use Dictionary class is totally different from the way you use Stack class and the way you use Vector class is different from the way you use Properties class. But, each of them handle the objects differently. To overcome this drawback of arrays, Java collection framework is introduced in Java from JDK 1.2.Īlthough, there were classes like Dictionary, Vector, Stack and Properties which handle group of objects better than the arrays. This causes lots of problem while handling the group of objects. Size of the arrays can not be changed once they are defined. Earlier, arrays are used to store these group of objects. Java Collection Framework or simply collections are nothing but the group of objects stored in well defined manner. Using this collection framework, you can store the objects as a list or as a set or as a queue or as a map and perform operations like adding or removing or retrieving the objects without much hard work. Java Collection Framework provides some predefined classes and interfaces to handle the group of objects. Java Collection Framework is a centralized and unified theme to store and manipulate the group of objects. ![]()
0 Comments
Leave a Reply. |