A
Q. What is the output of the Java program with the multidimensional array?
Code:
int[][] goats;
goats = new int[3][];
goats[0] = {1,2};
System.out.println(goats[0][1]);
goats = new int[3][];
goats[0] = {1,2};
System.out.println(goats[0][1]);
- Correct Answer - Option(D)
- Views: 14
- Filed under category Java
- Hashtags:
Discusssion
Login to discuss.