An array is a less dynamic structure than an ArrayList. An array gets a fixed size once it's created. It's memory is allocated upon creation, generally these are sequential memory locations.
An ArrayList provides the same features as an Array: you can acces the contents by index. It add the features of a List to it: getting the head, traversing contents, inserting, appending... It also can grow in size dynamically. This is done by giving each element in an ArrayList a reference to the next element. This allows the elements to be stored throughout the available memory.
> but there is
> java.lang.reflect.Array
Form the java docs: "The Array class provides static methods to dynamically create and access Java arrays"
You must have noticed that this Array class is final and has all methods as static and public. Basically this is an utility class which supports manipulating arrays of objects reflectively.
-BJ
Message was edited by:
Bimalesh