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

单项选择题

public class test (     
private static int j = 0; 
private static boolean methodB(int k) ( 
j += k; 
return true; 
) 
public static void methodA(int  i)( 
boolean b:    
b = i < 10 | methodB (4); 
b = i < 10 || methodB (8); 
) 
public static void main (String args[])(  
methodA (0); 
system.out.printIn(j); 
) 
)  
What is the result?()  

    A. The program prints “0”
    B. The program prints “4”
    C. The program prints “8”
    D. The program prints “12”
    E. The code does not complete.

点击查看答案&解析

相关考题

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

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

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

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