给定一个Java程序代码,如下:运行编译后,输出结果是 public class Test{int count =9public void count1(){int count = 10;System.out.println(“count1=” + count);}public void count2(){System.out.println(“count2=” + count);}public static void main(String arge[]){Test t = new Test();t.count1();t.count2();}}
A、count1=9count2=9
B、count1=10count2=9
C、count1=10count2=10
D、count1=9count2=10
发布时间:2025-10-16 22:12:45