If else statment with java practical

the if statement we get the output only when the condition is true , but in the if else statement you get the output if you have both the conditions is true or false ?