多做题,通过考试没问题!

Java认证考试

睦霖题库>其他计算机考试>Java认证考试

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.
正确答案:C
答案解析:
进入题库查看解析

微信扫一扫手机做题