Start learning →

In an else-if chain, which statements are executed when a match occurs?

AAll subsequent paths
BEvery matching block
COnly the first true
DThe final else block
Answer & Solution
Correct answer: C. Only the first true
Only statements following the first condition that evaluates to true are executed.
Practise this question with Quill — ICSE Class 8 →

Keep practising Conditional Statements in Java

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

Start a Conditional Statements in Java lesson →