Start learning →

Which part of a standard if-then-else construct can be omitted?

AThe then keyword
BThe condition expr
CThe statement body
DThe else clause
Answer & Solution
Correct answer: D. The else clause
The else alternative clause is optional and can be omitted from an if construct.
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 →