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] + " "); } } }

  1. A.

    120 200 14

  2. B.

    120 200 016

  3. C.

    Compilation Error

  4. D.

    120 200 16

  5. E.

    Question not attempted

Attempted by 350 students.

Sign up free to check your answer

Sign up free

Explore the full course: Rpsc Programmer

Loading lesson…