<code>"score: " + obj</code> where obj is null prints
- Acheck_circle
score: null
- B
score: 0
- C
score:
- D
Throws NullPointerException
Explanation
String concatenation with null reference produces "null".
AP Computer Science A· difficulty 4/5
<code>"score: " + obj</code> where obj is null prints
score: null
score: 0
score:
Throws NullPointerException
Explanation
String concatenation with null reference produces "null".
Want 10 more like this — adaptive to your weak spots?