What is the output of the following JAVA code? String s = "exam:" + 9 + 9 + 9;…

PYQ DSSSB 2021

What is the output of the following JAVA code? String s = "exam:" + 9 + 9 + 9; System.out.println(s);

  1. A.

    exam 27

  2. B.

    exam:27

  3. C.

    exam:9

  4. D.

    exam:999

Attempted by 1503 students.

Sign up free to check your answer

Sign up free

Explore the full course: Dsssb Tgt Computer Science Paper 2

Loading lesson…