首页 试题广场 > 试题详情
单选题

【C012019】Given:
1
2
3
4
5
6
7
8
9
10
public class IfTest{
public static void main(string[]args){
int x=3;
int y=1;
if(x=y)
system.out.println(“Not equal”);
else
system.out.println(“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.
提交并查看答案
下一题 上一题
Ke星伙伴们的回答/ 18个回答
关闭
关闭
QQ
交流群
邀请
好友
App
下载
意见
反馈
返回
顶部