Sobes.tech
Junior

Is an array a static or dynamic data structure?

sobes.tech AI

Answer from AI

An array in Java is a static data structure.

Its size is fixed at creation and cannot be changed afterwards. If a collection with a dynamic size is needed, for example, ArrayList or LinkedList are used.

Is an array a static or dynamic data structure? — Java - sobes.tech