Analyze the following code:
public class Test {
public static void main(String[] args) {
| for (int i = 0; i < x.length; i++) |
| System.out.println(x[i]); |
}
}
◦ The program displays 4.
◦ The program has a runtime error because the last statement in the main method causes ArrayIndexOutOfBounds exception.
◦ The program has a syntax error because i is not defined in the last statement in the main method.
◦ The program displays 0 1 2 3 4.