Examveda
Examveda

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

Answer: Option A


This Question Belongs to Java Program >> Flow Control

Join The Discussion

Related Questions on Flow Control