Answer to Question #282068 in Java | JSP | JSF for candy

Question #282068

Which is the output of the below code fragment:

System.out.print(“The result is: “ + (3+2))

System.out.println(“You did a great job!”)

A. The result is + (3+2)You did a great job!

B. The result is + 5You did a great job!

C. The result is 5You did a great job!

D. The result is 5 You did a great job


1
Expert's answer
2021-12-24T01:20:32-0500

None of them are correct since they do not contain a colon after the 'is'. If option C contained a colon, then it would be correct.


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog