Computer Science, asked by ravivarmanunna, 8 months ago

3
4.2 The following code results in compile time error. Identify the error.
public static void display (x)
int y;
if (x > 10)
y = X
}
System.out.println("Value of Y =
+ y);​

Answers

Answered by GamerAzim
2

Answer:

here

Explanation:

The program has a runtime error because the array element x[0] is not defined.

Similar questions