Oracle
1Z0-803 · Question #153
1Z0-803 Question #153: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-803 to reveal the answer and full explanation for question #153. The question stem and answer options stay visible for context.
Question
Given the code fragment: 5. // insert code here 6. 7. arr[0] = new int[3]; 8. arr[0][0] = 1; 9. arr[0][1] = 2; 10. arr[0][2] = 3; 11. 12. arr[1] = new int[4]; 13. arr[1][0] = 10; 14. arr[1][1] = 20; 15. arr[1][2] = 30; 16. arr[1][3] = 40; Which two statements, when inserted independently at line 5, enable the code to compile?
Options
- Aint [][] arr = null;
- Bint [][] arr = new int[2];
- Cint [][] arr = new int[2][];
- Dint [][] arr = new int[][4];
- Eint [][] arr = new int[2][0];
- Fint [][] arr = new int[0][4];
Unlock 1Z0-803 to see the answer
You've previewed enough free 1Z0-803 questions. Unlock 1Z0-803 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.