I got a quiz in class and there is a question that i got wrong and i am curious about what the answer for the question is. The question is:
Consider the following program.
The missing semicolon in the fifth line of this code is a syntax error. It will be caught by the ________.Code:public class HelloWorld
{
public static void main (String agrs[])
{
System.out.println ("Hello World")
}
}
a. compiler c. assembler
b. editor d. interpreter
The first question i asked the teacher was if this was at runtime he said no. The question was referring to when you are typing your code in eclipse or netbeans and miss a semicolon and then the line gets alighted to indicate that there is a error and what is responsible for that. I put the editor and i think my answer was correct because it would be at runtime that this check would be done otherwise. Can anyone tell me what is the answer and why.

