Java - swtich Statement

The switch statement is a good alternative for the if...elseif... statement and it provides the parallel alternatives. The switch statment internally performs only the equality comparision (eg: a == b) not like a if statement expression (i.e. swtich statement can't execute the expressions like a > b).