以下会产生编译错误的Java语句是( )。
A.if (2 == 3) System.out.println("Hi"); B.if (2 = 3) System.out.println("Hi"); C.if (true) System.out.println("Hi"); D.if (2 != 3) System.out.println("Hi");正确答案B
以下会产生编译错误的Java语句是( )。
A.if (2 == 3) System.out.println("Hi"); B.if (2 = 3) System.out.println("Hi"); C.if (true) System.out.println("Hi"); D.if (2 != 3) System.out.println("Hi");正确答案B