Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

is switch-case faster than if-else?

807588Feb 9 2009 — edited Feb 12 2009
I believe switch-case is faster than if-else, and to guarantee this fast performance it is not permitted to use types more complex than a simple int. Is that true?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 12 2009
Added on Feb 9 2009
10 comments
536 views