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 ...

Get Special Edition Using Java 2 Standard Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.