How ArrayList works internally in java | Internal working of ArrayList in java

preview_player
Показать описание
In this video we will learn How ArrayList works internally in java?
Рекомендации по теме
Комментарии
Автор

I unable to understand that why there are two variables in ArrayList as and EMPTY_ELEMENTDATA though both, the variables are empty Arrays? Thank you.

pushpanjalimohite
Автор

Nice try. But please watch once by yourself before publishing the video. After 09:58 you are trying to say Math.max() will return minimum into both. Is that correct? And this if block has been added to check if ArrayList was initialised by using empty constructor so in that case it will resize array to 10 or more than 10 (if minCapacity) value is more than 10.

BuffaloCanCode
Автор

explanation needs improvement.
Anyway thanx

Chesstreamer