Hot Posts

Switch Statements

Contrary to if-then-else statements, a switch statement can have numerous possible paths of execution. Switches works on primitive data types such as integer as well as enumerated types and newly introduced in Java 7 switch work with Strings. The following article Switch Statements and Gotchas shows how to use switch and identifies a few gotchas that can easily trip you up.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: