0What is the output of the following JAVA code?String s = "exam:" + 9 + 9 + 9; System.out.println(s);Aexam:9Bexam:27Cexam 27Dexam:999 Correct answer: D ExplanationIn Java, + with a String concatenates, so "exam:" + 9 + 9 + 9 gives "exam:999". Join the discussion Report an error Share