Lowest price ever! Learn Generative AI for 48% less!
Get my discount+ 3
through array list u can add as many elements in ur array.
there is no limit.
but array has limit.
this is advantage of arraylist.
but array has an advantage. sulpose u want to access any random element in array, we can get it instantly while in case of arraylist, it will take some time because it start from one end to reach desired element