单项选择题

Given:
2. public class Boggy {
3. final static int mine = 7;
4. final static Integer i = 57;
5. public static void main(String[] args) {
6. int x : go(mine);
7. System.out.print(mine + " " + x + " ");
8. x += mine;
9. Integer i2 = i;
10. i2 = go(i);
11. System.out.println(x + " " + i2);
12. i2 = new Integer(60);
13. }
14. static int go(int x) {return ++x; }
15. }
What is the result

A.7 7 14 57
B.7 8 14 57
C.7 8 15 57
D.7 8 15 58
E.7 8 16 58
F.Compilation fails.
G.An exception is thrown at runtime.
题目列表

你可能感兴趣的试题

微信扫码免费搜题