Chapter 3. From Literals to Expressions
The previous chapter started a tour of Java's non-object-oriented language features. Specifically, it focused on Unicode, comments, identifiers, and types. Although those features are fundamental to all Java source code, they aren't enough to write a complete Java application. Before an application can be presented, a few more features are required. Specifically, you need to know about literals, variables, operators and separators, and expressions. This chapter introduces those new features along with application source code that demonstrates a few of the features covered in this and the previous chapter.
Literals
A value (such as an integer) can be literally specified in source code as a character sequence ...
Get Java™ 2 by Example, Second 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.