Start learning →

In the compound assignment a += b, how many times is a evaluated?

AExactly twice
BExactly once
CThree times
DNever evaluated
Answer & Solution
Correct answer: B. Exactly once
Compound assignment evaluates the left-hand variable expression exactly once.
Practise this question with Quill — ICSE Class 8 →

Keep practising Operators in Java

Browse all Operators in Java questions for ICSE Class 8, or explore more Computer Applications topics.

Start a Operators in Java lesson →