AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Java array vs arraylist3/15/2024 But this is not the only thing that we need to remember. So up to now we understand that both stores the data of same type but one have primitive data type along with object and other only takes object. So if you want to learn more about ArrayList then I would suggest you to read Java Doc For ArrayList. Similarly ArrayList is part of Collection Framework which store similar kind of Objects and in the core of it, it use array. So lets begin with small introduction of Array and ArrayList.Īrray is a data structure defined in core java which stores multiple data of same type (Can store Object as well) and it is of fixed size.But if you want to learn more about Array and its implementation then I would suggest you, Read Arrays in Java and its implementation in WebDriver. Recently one of my friend has gone for interview in one of the leading travel domain company where he was asked about Array and ArrayList and interviewer was keen about performance of value insertion in Array and ArrayList.
0 Comments
Read More
Leave a Reply. |