Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Why Array is Static, whereas ArrayList is Dynamic?

User_CSSVBFeb 28 2021 — edited Feb 28 2021

I understand from one of Array in Java posts that ArrayList is dynamic in size, whereas arrays are static in size.
Can someone explain to me, why the difference and how it works?

Comments

Post Details

Added on Feb 28 2021
1 comment
912 views