In Java, what is the purpose of the "if-else if-else" statement?
A. To create loops
B. To define methods
C. To evaluate multiple conditions and execute the corresponding block of code
D. To declare variables
Answer: Option C
Related Questions on Flow Control
What is the purpose of the "if" statement in Java?
A. To execute a block of code conditionally
B. To create loops
C. To declare variables
D. To define methods
A. No output
B. Error
C. Hello
D. 5
Join The Discussion