 <p>If you are thinking about compilation time purpose IF CONDITION is always preferable. If conditions do faster checking than switch case.</p> <p>But if you thin programatically then If condition is just a series of boolean checks. For program to work efficiently switch case should be used(Although it consumes time).</p>