Question: what is the difference between else if and else?
Answer: If and else if both are used to test the conditions. In the if case compiler check all cases Wether it is true or false. if no one block execute then else part will be executed. in the case of else if compiler stop the flow of program when it got false value.