经典指数          
原因
2607
浏览数
0
收藏数
 

关于下面的程序Test.java说法正确的是(    )

public class Test {

static String x="1";

static int y=1;

public static void main(String args[]) {

static int z=2;

System.out.println(x+y+z);

}

}

  • 3
  • 112
  • 13
  • 程序有编译错误

     举报   纠错  
 
切换
1 个答案
这题不应该选D?局部变量能用static修饰?
 
切换
撰写答案
扫描后移动端查看本题