© Kishori Sharan and Adam L. Davis 2022
K. Sharan, A. L. DavisBeginning Java 17 Fundamentalshttps://doi.org/10.1007/978-1-4842-7307-4_5

5. Operators

Kishori Sharan1   and Adam L. Davis2
(1)
Montgomery, AL, USA
(2)
Oviedo, FL, USA
 
In this chapter, you will learn:
  • What operators are

  • The different types of operators available in Java

  • Operator precedence, which determines the order in which operators are evaluated when multiple operators are used in the same expression

We use a lot of snippets of code in this chapter. The quickest way to evaluate those snippets and see the results is to use the JShell tool. Refer to Chapter 2 on how to start the JShell tool on a command prompt.

All classes in this chapter are members of a module named jdojo.operator whose declaration ...

Get Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 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.