欢迎来到牛牛题库网 牛牛题库官网
logo

单项选择题

以下代码的输出结果? 
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

点击查看答案&解析
微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题