Answer :
The boolean expression being examined by an if statement must be contained in parentheses according to Java. Because it checks a relationship using relational operators, the "if" expression is also known as a conditional statement or decision statement.
The comparison's outcome is used to determine which statement(s) the program will run next.
if (test condition)
{
block of one;
or more statements;
}
The "if" statement will STOP if you add a semicolon to the end of the test condition. The block won't be put into action.
Any relational comparison (or logically TRUE statement) may be the test condition, and it must be surrounded in parenthesis. For readability, the block of statements is indented and enclosed in braces. If only ONE phrase follows the "if," the braces are not necessary, but it is still a good idea to use them.
Only when the test condition is TRUE does the block go into action. The block is disregarded and execution moves on to the statement after it if the test condition is FALSE.
To learn more about boolean expression click here:
brainly.com/question/29945733
#SPJ4