code:
class Pass
{
public static void main(String arg[])
{
int[][] i={{1,2,3},new int[]{3,4,5},{333},{},{6,7,8}};//line1 ok
int[][] i1={{1,2,3},new int[][]{1,2,3},{4,4,3}}; //line2notok
int i2[]={{1,2,3},new int[][]{2,3,4},{4,5,6}};//line3notok
int i3[]={{1,2,3},new int[]{1,2,3}};//linenot5
System.out.println();
}
}
My question is why this three
lines give compile time error
please anyone explain me;