1(ix)
Name the type of error, if any in the following statement:
System.out.print("HELLO")
- (a)logical
- (b)no error
- (c)runtime
- (d)syntax
Show SolutionHide Solution↓
syntax
Reason — The given statement is missing a terminator ( ; ) at the end. Thus, it has a syntax error.