Mistyping “println” as “printn” will result in

Mistyping “println” as “printn” will result in

a) a syntax error
b) a run-time error
c) a logical error
d) no error at all
e) converting the statement into a comment


Answer:  a.

Explanation:  If the Java compiler cannot make sense of a command, the compiler cannot convert it and responds with a syntax error.  While “println” is recognized as a command, “printn” is not, and so the compiler provides a syntax error.