Hi
Have a look at the following source code:
class A {
public static void main (
String [] args) {
int [] B = new int [2];
B [0] = 5;
B [1] = 6;
int [] C = {7,8};
}
}
An array is an object. There are two arrays. There is an explicit memory allocation. This is array B. There is an implicit memory allocation. This is array C.
Regards
Urs