black

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.

相关考题

多项选择题 Integer i = new Integer (42);  Long 1 = new Long (42);  Double d = new Double (42.0);   Which two expressions evaluate to True?()

单项选择题 1.public class test (  2.public static void main (String args[])    {  3.int  i = 0xFFFFFFF1;  4.int  j = ~i;  5.    6.}  7.)    What is the decimal value of j at line 5?()

多项选择题 Whichtwoareequivalent?()

All Rights Reserved 版权所有©建筑考试题库(jzkao.com)

备案号:湘ICP备2020024380号-3