Possible Duplicates:
is “else if” faster than “switch() case” ?
What is the relative performance difference of if/else versus switch statement in Java?
I am just wondering if one is better (i.e. more efficient). To me the seem to be the same other than the syntax.