單項(xiàng)選擇題

1. public class Test { 
2. int x= 12; 
3. public void method(int x) { 
4. x+=x; 
5. System.out.println(x); 
6. } 
7. } 
Given: 
34. Test t = new Test(); 
35. t.method(5); 
What is the output from line 5 of the Test class?() 

A. 5
B. 10
C. 12
D. 17
E. 24

題目列表

你可能感興趣的試題

微信掃碼免費(fèi)搜題