Images

4

Operators

CERTIFICATION OBJECTIVES

•     Using Java Operators

•     Use Parentheses to Override Operator Precedence

•     Test Equality Between Strings and Other Objects Using == and equals( )

Images   Two-Minute Drill

Q&A Self Test

If you’ve got variables, you’re going to modify them. (Unless you’re one of those new-fangled “FP” programmers.) You’ll increment them, add them together, and compare one to another (in about a dozen different ways). In this chapter, you’ll learn how to do all that in Java. As an added bonus, you’ll learn how to do things ...

Get OCA Java SE 8 Programmer I Exam Guide (Exams 1Z0-808) 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.