Examveda
Examveda

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

D. To declare variables

Answer: Option C


This Question Belongs to Java Program >> Flow Control

Join The Discussion

Related Questions on Flow Control