O'Reilly logo

Oracle Certified Associate, Java SE 7 Programmer Study Guide by Richard M. Reese

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Control structure issues

So far, we have identified several types of decision constructs that are available in Java. For example, simple decisions are easily handled using a if statement. Either-or type of decisions can be addressed using a else if clause or a switch statement.

The proper use of control structures is paramount in developing good code. However, there is more to making decisions than simply choosing between different control constructs. We also need to test our assumptions and handle unexpected situations.

In this section we will start by addressing a few general issues that you should keep in mind when using decision constructs. This will be followed by an examination of various floating point issues that can prove troublesome to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required