Vidyalelo
Java Programming · Q19

Flow Control

Programming · Java Programming · question 19

Q19

What is the purpose of the "if-else" statement in Java?

A.
To execute one block of code if a condition is true and another block if it's false
Answer
B.
To declare variables
C.
To create loops
D.
To define methods

Answer: Option A

Solution

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