In If-else if statements, if ‘if’ condition is true then ‘if’ statement gets executed and if it is false then ‘else if’ condition is checked and if it is true then ‘else if’ gets executed otherwise condition moves to next statement and if all conditions are false then ‘else’ statement gets executed.