What output is produced for the command: "java cmd a b c d", when following…

PYQ RPSC Programmer 2024

What output is produced for the command: "java cmd a b c d", when following code is run? class cmd { public static void main(String args[]) { System.out.println(args[2]); } }

  1. A.

    c

  2. B.

    cmd

  3. C.

    b

  4. D.

    a

  5. E.

    Question not attempted

Attempted by 323 students.

Sign up free to check your answer

Sign up free

Explore the full course: Rpsc Programmer

Loading lesson…