Computer Applications
Name the type of error, if any in the following statement:
System.out.print("HELLO")
- logical
- no error
- runtime
- 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