© Kishori Sharan 2017

Kishori Sharan, Beginning Java 9 Fundamentals, https://doi.org/10.1007/978-1-4842-2902-6_5

5. Operators

Kishori Sharan

(1)Montgomery, Alabama, 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

I 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 and inside the NetBeans IDE.

All classes in this chapter are a member of a module named jdojo.operator whose declaration is shown in Listing ...

Get Beginning Java 9 Fundamentals: Arrays, Objects, Modules, JShell, and Regular Expressions 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.