试题详情
- 单项选择题 public class Test { public int aMethod() { static int i = 0; i++; return i; } public static void main (String args[]) { Test test = new Test(); test.aMethod(); int j = test.aMethod(); System.out.println(j); } } What is the result?()
A、 0
B、 1
C、 2
D、 Compilation fails.
- D
关注下方微信公众号,在线模考后查看
热门试题