欢迎来到求知题库网 求知题库官网
logo
全部科目 > Java认证考试 > SCJP程序员认证考试

单项选择题

Given the following code:   
public class Test { 
void printValue(int m){ 
do { 
System.out.println("The value is"+m);    
} 
while( --m > 10 )    
} 
public static void main(String arg[]) {    
int i=10; 
Test t= new Test();    
t.printValue(i);    
}    
} 
Which will be output?()    

    A. The value is 8
    B. The value is 9
    C. The value is 10
    D. The value is 11

点击查看答案&解析

相关考题

微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题