String s = "Score: ";
int n = 5;
System.out.println(s + 3 + n);What does this print?
- Acheck_circle
Score: 35
- B
Score: 8
- C
Score: 53
- D
Compile error
Explanation
Left-to-right + with a String produces String concatenation: "Score: " + 3 = "Score: 3", then + 5 yields "Score: 35".