单项选择题
以下代码的输出结果?
public class Test{
static int x = 012;
static {
x = x + 1;
}
public static void main(String args[]){
System.out.println(x);
}
}
A、10
B、11
C、12
D、13
点击查看答案&解析
