conditional statements in Java

Conditional/Control Flow statements
#1. to perform an action when a condition is true
if(condition)
{
//statements
}
Eg. if(z<20)
{
//statements
}
#2. to perform action1 when a condition is true, and perform another action, when condition is false
if(condition)
{
//statements 1
}else
{
//statements 2
}
#3.
if(condition1)
{
//statements
}
else if(condition2)
{
//statements
}
else if(condition3)
{
//statements
}
else
{
}