What will be the value of arr[2] in the following code? String[] arr = new…

PYQ RPSC Programmer 2024

What will be the value of arr[2] in the following code? String[] arr = new String[3]; arr[0] = "Maths"; arr[1] = "Science";

  1. A.

    Null

  2. B.

    "Science"

  3. C.

    "Maths"

  4. D.

    " "

  5. E.

    Question not attempted

Attempted by 1188 students.

Sign up free to check your answer

Sign up free

Explore the full course: Rpsc Programmer

Loading lesson…