class test{
public static void main(
String args[])
{
int i=0;
int[] a={3,4};
a[i]=i=9;
System.out.println(i+" "+a[i]);
}
}
A) Raises ArrayIndexOutOfBoundException
B) Prints "9 9 6"
C) Prints "9 0 6"
D) Prints "9 3 6"
E) Prints "9 3 9"
In the Mughal Book(p 74), hesays the answer is B, but i think( also checked it) the answer is A.
am i correct ot not? clarify me.
thanks in advance