Vidyalelo
Java Programming · Q1

Flow Control

Programming · Java Programming · question 1

Q1

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

A.
To execute a block of code conditionally
Answer
B.
To create loops
C.
To declare variables
D.
To define methods

Answer: Option A

Solution

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