using 'switch case' is generally faster than 'if else' but incase of only 2 cases if else is faster why?
please answer this was asked in a interview..