KnowledgeBoat Logo
|

Computer Applications

Which of the following might make the Java compiler report a syntax error in a particular line of a program?

  1. The program is typed in the wrong font.
  2. The line contains a comma (,) instead of a dot (.).
  3. It is caused by Java runtime.
  4. Program takes too long to compile.

Input in Java

7 Likes

Answer

The line contains a comma (,) instead of a dot (.).

Answered By

1 Like


Related Questions