What is the meaning of int arr[] = null;

if we assign a null array to any other array then it is possible
" int arr1[] = new int[3];
int arr[] = null;
arr = arr1; "// possible
if we assign a null array to any value then it is not possible why
““int arr[] = null;
arr[0] = 3;”” // not possible
//null pointer exception
why???

please explain how jvm assign the memory these two statements …

In Java, an int is a primitive type and cannot be null . Objects, however, are stored as references, so if you declare an object reference but do not make a new object, the reference will be null .

int arr1[] = new int[3]; int arr[] = null; arr = arr1; please explain memory representation of these three statements