單項選擇題

編譯如下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(); 
 } } 
結(jié)果將()。    

A.不能通過編譯
B.輸出:       count 1 = 10        count 2 = 9
C.輸出:          count 1 = 9          count 2 = 9

微信掃碼免費搜題