99.9k views
5 votes
A syntax error occurs when

a. the Java compiler can't be located
b. bytecode can't be interpreted properly
c. there's a syntax error in a Java statement
d. the class doesn't contain a main() method

User Qifan Guo
by
4.8k points

1 Answer

7 votes

Answer:

C. There's a syntax error in a Java statement.

Step-by-step explanation:

Java is a multi-purpose, object oriented, high level Programming language. It is very similar to C and C++, but differs slightly in syntax. The java statement is compiled from one line to code to the other into bytecode.

IDEs like Netbean are used to edit java code. It follow a strict java syntax, in which when the syntax is flawed, it outputs a syntax error in the console.