Search This Blog

Friday, February 6, 2026

Java Control Structures - switch Part 1

 Why will you use yield in a switch - case in Java?

a) It is a replacement for the default

b) It can handle multiple case statements

c) It is the only statement that can be used in the default

d) To execute multiple lines of code block in a switch and return a value


Created by Nancy K.A.N

@15:44 06-Feb-2026

No comments:

Post a Comment