Vidyalelo
Java Programming · Q5

Flow Control

Programming · Java Programming · question 5

Q5

What is the purpose of the "switch" statement in Java?

A.
To define methods
B.
To create loops
C.
To perform different actions based on the value of an expression
Answer
D.
To declare variables

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board