当前位置: 答题翼 > 问答 > 计算机类考试 > 正文
目录: 标题| 题干| 答案| 搜索| 相关
问题

以下代码的输出结果?public class Test{int x=3;public static void main(String argv[]){int x= 012;System.out.println(x);}}


以下代码的输出结果?public class Test{int x=3;public static void main(String argv[]){int x= 012;System.out.println(x);}}

A.12

B.012

C.10

D.3

请帮忙给出正确答案和分析,谢谢!

参考答案
您可能感兴趣的试题
  • 下列代码的执行结果是()。 public class Test{ public int aMethod( ){ static int i=0; i++;

  • 下列代码的执行结果是 public class Test{ public int aMethod( ) { static int i=0;

  • 已知 import java.io.*; class Person{ public static void print();} } 对于以上代码 其输出结果是

  • 编译运行以下程序后 关于输出结果的说明正确的是()。 public class Conditional{ public static

  • 下列代码执行之后 输出的结果为______。 public class ex34{ public static void main(String[]ar

  • 请先阅读下面的代码 public class Test { public Test(); } } 上面程序的运行结果为下列哪一项?