Home / MCQ Bank / Computer
Computer Flow Control

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

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option A • To execute one block of code if a condition is true and another block if it's false

Related Computer Questions

To properly exit Windows The __________ attribute effectively renders the iframe as an inline include, which allows the parent document's CSS to affect the contents of the iframe What is the size of Node B in given K-ary tree? What statistical technique is used to estimate the parameters of a probability distribution from a sample of data? The properties of the objects act like different kinds of class members. They are