题目详情
单选题 下列程序的执行结果是( ). public class Test { public int aMethod() { static int i=0; i++; System.out.println(i); } public static void main(String args[]) { Test test=new Test(); test.aMethod(); }}
A. 编译错误
B. 0
C. 1
D. 运行成功,但不输出

学科:大数据编程基础(Java)
时间:2025-11-26 23:11:28
相关题目
相关作业
