Chapter 2Operators
The previous chapter talked a lot about defining variables, but what can you do with a variable once it is created? This chapter introduces operators and shows how you can use them to combine existing variables and create new values. It shows you how to apply operators to various primitive data types, including introducing you to operators that can be applied to objects.
Understanding Java Operators
Before we get into the fun stuff, let's cover a bit of terminology. A ...
Get OCP Oracle Certified Professional Java SE 17 Developer Study Guide 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.