int a[] = new int [10];System.out.print(a);
arr is an array variable, it is pointing to array of integers. Printing arr will print garbage value. It is not same as printing arr[0].
Previous Question Next Question
Your comments will be displayed only after manual approval.