Java TutorialLesson 10Free preview
Java Operators
This lesson is part of Java · All levels
Summary
An operator is a symbol for running an operation on a value or variable, e.g. + for addition and = for setting a value. Java provides the arithmetic operators, assignments, and comparisons that underlie all program calculations. The results of the comparison operator are always boolean true or false.
Key points
- Arithmetic operators include +, -, *, /, and % (residual to)
- Assignment operators such as += combine value setting with operations
- The comparison operator produces a boolean: ==,!=, >, <, >=, <=
- Dividing two integers will produce an integer as well.
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.