

McqMate
Q. |
Given the following code fragment:~~~int A[];int i = 0;A = new int A[4];~~~while (i < 4)~~~{~~~A[i] = 10;~~~i = i + 1;~~~}~~~What is the value of A[3]?. |
A. | 0. |
B. | 3. |
C. | 10. |
D. | 9. |
Answer» C. 10. |
View all MCQs in
Java ProgrammingNo comments yet