What is the output of this program?

class Array8
{
public static void main(String[] args)
{
int[][] x=new int[3][2];
System.out.println(x);
System.out.println(x[0]);
System.out.println(x[0][0]);
}
}
/*
Output:- [[I@4a5ab2
[I@1888759
0
Explanation:- Reference value may differ from system to system.
[[I@4a5ab2  => 2D Array
[I@1888759 => 1D Array
0 => Default value of 1D Array
*/

0 comments: