题库 软件开发 题目列表 public class Main {     private static int x = 10;...
单选题
public class Main {
    private static int x = 10;
    private static Integer y = 10;
    public static void updateX(int value) {
        value = 3 * value;
    }
    public static void updateY(Integer value) {
        value = 3 * value;
    }
    public static void main(String[] args) {
        updateX(x);
        updateY(y);
    }
}
执行以上程序后,x和y的值分别是多少?
A.

10,10

B.

10,30

C.

30,10

D.

30,30

题目信息
校招真题
-
正确率
0
评论
7
点击