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

单项选择题

public class IfTest ( 
public static void main(string[]args) { 
int x = 3; 
int y = 1; 
if (x = y) 
system.out.printIn(“Not equal”); 
else 
system.out.printIn(“Equal”); 
} 
)  
What is the result?()      

A. The output is “Equal”
B. The output in “Not Equal”
C. An error at line 5 causes compilation to fall.
D. The program executes but does not print a message.

点击查看答案&解析
微信小程序免费搜题
微信扫一扫,加关注免费搜题

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