1.

What correction is required for following Java code snippet to compile?int [ ] X = new int [10];for (int P = 0; P

A. P <= X.length() should be ​P < X.length()
B. P++ should be P + 1
C. X.length() should be X.length
D. X[P] = 5 should be X(P) = 5
Answer» D. X[P] = 5 should be X(P) = 5


Discussion

No Comment Found