Mastering ArrayList in Java A Comprehensive Guide

preview_player
Показать описание
Hello students Now today I enter into the first concrete class available in Collection Interface You know that I already covered the hierarchy of the Collection Interface where collection is the core interface collection having a child interface that is called as list So ArrayList is a class which is inherited from List Now before I enter into ArrayList I give you some ideas about List I already covered in my last class that is what actually happens in case of List List holds the elements in insertion order and as it holds the elements in insertion order index play an important role for retrieving the elements for removing the elements for insert the elements and for update the elements Anyway ArrayList is a predefined class or it is a system-defined class present in java util package ArrayList inherits from abstract list class and list interface It also inherits from 3 marker interfaces One is cloniable another one is serializable another one is random access You try to understand cloniable is a marker interface present in Java lang packages Serializable is a marker interface present in java io package Random access is a marker interface available in java util package You know that what is a marker interface When the body of the interface is blank it is called as a marker interface But marker interface gives the status to the programmer to perform some specific job When ArrayList class inherits from Clonable then ArrayList object can be cloned I must show you how it is cloned You know that what is the meaning of object cloning Object cloning means word A duplicate object can be created You are capable to create a duplicate object
Рекомендации по теме
welcome to shbcf.ru