Vidyalelo
Java Programming · Q3

Miscellaneous Java

Programming · Java Programming · question 3

Q3

What is the output of the following code snippet in Java? `System.out.println("5 + 2 = " + 5 + 2);`

A.
5 + 2 = 7
B.
7
C.
5 + 2 = 52
Answer
D.
Compilation Error

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board