if else statement in java interview questions