Array Vs ArrayList In Java Video

Published: 28 November 2016
on channel: Java Made Easy
4,836
83

Array vs ArrayList is one of the very common Java interview Questions. In this tutorial learn the major differences between Array and ArrayList.

Arrays Points

Array size is fixed during declaration.
Array can access using array name & index
Array can store primitives and objects.
Array has length field for finding total elements.
Array allows multidimensional data
Arrays only allow homogeneous data


ArrayList Point

ArrayList size is not fixed and growable.
ArrayList accesses data using get method and index
ArrayList can only store objects. Wrapper needed for primitives.
ArrayList uses size() method to find the total elements.
ArrayList can only handle single dimensional data
ArrayLists without type parameter allow all types of objects


On this page of the site you can watch the video online Array Vs ArrayList In Java Video with a duration of hours minute second in good quality, which was uploaded by the user Java Made Easy 28 November 2016, share the link with friends and acquaintances, this video has already been watched 4,836 times on youtube and it was liked by 83 viewers. Enjoy your viewing!