Start learning →

Match each Java conditional construct with its syntax and use:

A1-A, 2-B, 3-C
B1-B, 2-A, 3-C
C1-C, 2-B, 3-A
D1-A, 2-C, 3-B
Answer & Solution
Correct answer: A. 1-A, 2-B, 3-C
if executes on true. if-else provides 2 branches. switch handles multi-way value matching.
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 →