多选题 Given:
1. public class Begin {
2. static int x;
3. {int[] ia2 = {4,5,6};
4. static {
5. int[] ia = {1,2,3};
6. for(int i = 0; i < 3; i++)
7. System.out.print(ia[i] + " ");
8. x= 7;
9. System.out.print(x + " ");
10. } }
And, if the code compiles, the invocation:
java Begin
What is the result?
【正确答案】 C
【答案解析】