Start learning →

Which statement was added in Java SE 13 to return switch values?

AThe return statement
BThe break statement
CThe yield statement
DThe output statement
Answer & Solution
Correct answer: C. The yield statement
The yield statement was introduced in Java SE 13 to return values from switch expressions.
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 →