what is a nested if statement
A nested if statement is an if-else statement with another if statement as the if body or the else body. if ( num > 0 ) // Outer if if ( num < 10 ) // Inner if System.out.println( num is between 0 and 10 ) ; There is an outer if statement, and an inner if.