单项选择题
A.不能通过编译B.输出: count 1 = 10 count 2 = 9C.输出: count 1 = 9……
编译如下Java程序片断:
class test{
int count = 9;
public void a(){ int count=10;
System.out.println("count 1 =" + count); }
public void count(){
System.out.println("count 2 =" + count); }
public static void main(String args[]){
test t=new test();
t.a(); t.count();
} }
结果将()。
A.不能通过编译
B.输出: count 1 = 10 count 2 = 9
C.输出: count 1 = 9 count 2 = 9