O'Reilly logo

Beginning JavaFX™ by Praveen Mohan, Lawrence PremKumar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 4. Operators and Expressions

An expression in a programming language is a combination of values, operators, variables and functions that are evaluated in a particular order of precedence to produce a value. An operator performs an operation on one or more operands to produce a value. In JavaFX Script, everything that is not a definition is an expression. This chapter describes the syntax, meaning, and the use of various expressions and operators in JavaFX Script.

Most of the operators in JavaFX Script are the same as in Java, with a very few exceptions. In this chapter, you will see the following operators in detail:

  • The assignment operator

  • Arithmetic operators

  • Unary operators

  • Relational operators

  • Logical operators

Operators combine multiple ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required