Hi, all, this one is from the JavaQuest Mock Exam,
What happens during execution of the following program?
1. public class OperandOrder {
2. public static void main(
String args[]) {
3. int i=0;
4. int a[] = {3,6};
5. a[i] = i = 9;
6. System.out.println(i + " " + a[0] + " " + a[1]);
7. }
8. }
I'm confused about the answer: 9, 9, 6
could anybody explain how "a[i] = i = 9" is excuted?
Lucy