In C, array is sequence of variables.
int arr[3];
if arr is 2000 then arr+1 is 2000+sizeof(int).
lly arr+2 is 2000+2*sizeof(int).
in that way array elements are accessed but in JAVA array elements are dynamically allocated using new. then how all others variables are accessed, means I want to ask the memory diagram(arrangement) for the arryas.
int arr[]=new int[3].
if arr is 2000 then (arr+1) may or mayn't be (arr+sizeof(int)) as dynamically allocated, then how that variable is accessed?