O'Reilly logo

Special Edition Using Java 2 Standard Edition by Geoff Friesen, Chuck Cavaness, Brian Keeton

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

How Expressions Are Evaluated

When an expression is simple, like those shown in Table 5.1, figuring out its evaluated result is easy. When expressions become more complex and multiple operators are used, following what they do gets a little more complicated.

The examples of expressions in Chapter 3 showed you that expressions are just combinations of operators and operands. And although that definition is true, it's not always very helpful. Sometimes you need to create and use complex expressions—maybe to perform a complicated calculation or some other involved manipulation of multiple variables. To do this, you need a deeper understanding of how Java expressions are created and evaluated. In this section, you look at three major tools that ...

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