问题:
public class IfTest (
public static void main(stringargs) {
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.
public class IfTest (
public static void main(stringargs) {
int x = 3;
int y = 1;
if (x = y)
system.out.printIn(“Not equal”);
else
system.out.printIn(“Equal”);
}
)
What is the result?()
● 参考解析
本题暂无解析
相关内容
相关标签