KnowledgeBoat Logo
|

Computer Applications

Name the type of error, if any in the following statement:

System.out.print("HELLO")

  1. logical
  2. no error
  3. runtime
  4. syntax

Input in Java

ICSE Sp 2024

34 Likes

Answer

syntax

Reason — The given statement is missing a terminator ( ; ) at the end. Thus, it has a syntax error.

Answered By

17 Likes


Related Questions