给定Java代码如下,编译运行后,输出结果是()。 public class Test { static int i; public int aMethod() { i++; return i; } public static void main(String[] args) { Test test=new Test(); test.aMethod(); System.out.println(test.aMethod()); } }
A.1
B.2
C.3
CC何何 16楼
嚒嚒哒 17楼
睡不醒的狗 18楼
镜子里 19楼
kuserdjt0 20楼
Lin5647 21楼
king望舒 22楼
haoson1989 23楼
执着的小前锋 24楼
西北一只喵 25楼
做题数5122
做题数1079
做题数908
做题数832
做题数799
做题数770