A
Q. What will be the output of the following Java program?
class Alligator
{
public static void main(String[] args)
{
int []x[] = {{1,2}, {3,4,5}, {6,7,8,9}};
int [][]y = x;
System.out.println(y[2][1]);
}
}
- Correct Answer - Option(C)
- Views: 11
- Filed under category Java
- Hashtags:
Discusssion
Login to discuss.