阅读下列代码: publicclassTest{ intcount=9; publicvoidcount1(){ intcount=10; System.out.println("count1="+count); } publicvoidcount2(){ System.out.println("count2="+count); } publicstaticvoidmain(Stringargs[]){ Testt=newTest(); t.count1(); t.count2(); } } 编译运行后,输出结果是()
A. count1=9count2=9
B. count1=10count2=9
C. count1=10count2=10
D. count1=9count2=10