JavaScript is required

What is output?
Media VietJack

A.
ABC
B.
BC
C.
B
D.
Complier Error
Trả lời:

Đáp án đúng: D


The code has a syntax error because the `else` statement is not associated with a valid `if` statement. The `System.out.println("B");` statement breaks the `if-else` block. Therefore, the code will result in a compiler error.

Câu hỏi liên quan