Explain the if statement in java.
The right answer will be marked as brainliest and no spamming otherwise your answer will be directly reported.
Answers
Answered by
0
Answer:
The Java if statement is the most simple decision-making statement. It is used to decide whether a certain statement or block of statements will be executed or not i.e if a certain condition is true then a block of statement is executed otherwise not.
Syntax:
if(condition)
{
// Statements to execute if
// condition is true
}
Similar questions