What will be the output of the following program? public class Demo { public…
PYQ RPSC Programmer 2024
What will be the output of the following program? public class Demo { public static void main(String[] args) { int[] arr = {120, 200, 016}; for (int i = 0; i < arr.length; i++) { System.out.print(arr[i] + " "); } } }
- A.
120 200 14
- B.
120 200 016
- C.
Compilation Error
- D.
120 200 16
- E.
Question not attempted
Attempted by 350 students.
Sign up free to check your answer
Sign up freeLoading lesson…

