String[][] grid = new String[2][2];
grid[0][0] = "A";
grid[0][1] = "B";
grid[1][0] = "C";
System.out.println(grid[1][1]);What is printed?
- Acheck_circle
null
- B
""
- C
C
- D
Compile-time error
Explanation
Default value for object references in an array is null. grid[1][1] was never assigned.