题目详情
单选题 有如下代码,则该程序运行时输出结果是( ). class Test{ public void show() { static int i=0; i++; System.out.println(i);; }} public class Test3 { public static void main(String[] args) { Test test=new Test(); test.show(); }}
A. 0
B. 1
C. 编译失败
D. 2
学科:面向对象程序设计
时间:2023-06-02 13:08:52
相关题目
相关作业