Start learning →

What is an alternative when chaining tests against one expression?

AInfinite while loop
BThe switch statement
CDynamic polymorphism
DMethod overriding
Answer & Solution
Correct answer: B. The switch statement
A switch statement serves as an alternative when repeatedly testing a single expression.
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 →