Java Operators
| lefthand-side | Op | righthand-side |
| <variable> | = | <expression> |
| text | = | "Harry Potter" |
| number | = | 10 |
| alphabet[0] | = | 'A' |
In all of the Java source we will cover, the righthand-side will be an expression. The lefthand-side will be the name (identifier) of a variable or an array expression which is a name followed by an index expression in square brackets.
The Java compiler will generate bytecode such that when the JVM executes the assignment expression, it
The Java compiler will generate bytecode such that when the JVM executes the equality expression, it
So, the value it produces is boolean.
The Java compiler will generate bytecode such that when the JVM executes the inequality expression, it
So, the value it produces is boolean.
The Java compiler will generate bytecode such that when the JVM executes the less-than expression, it
So, the value it produces is boolean.
The Java compiler will generate bytecode such that when the JVM executes the greater-than expression, it
So, the value it produces is boolean.
The Java compiler will generate bytecode such that when the JVM executes the greater-than-or-equal-to expression, it
So, the value it produces is boolean.
The Java compiler will generate bytecode such that when the JVM executes the logical-and expression, it
NOTE that evaluation of the righthand-side is NOT guaranteed. It may not happen.
So, the value it produces is boolean.
The Java compiler will generate bytecode such that when the JVM executes the logical-and expression, it
NOTE that evaluation of the righthand-side is NOT guaranteed. It may not happen.
So, the value it produces is boolean.
The Java compiler will generate bytecode such that when the JVM executes the addition expression, it
So, the value it produces is numeric.
The Java compiler will generate bytecode such that when the JVM executes the subtraction expression, it
So, the value it produces is numeric.
The Java compiler will generate bytecode such that when the JVM executes the multiplication expression, it
So, the value it produces is numeric.
The Java compiler will generate bytecode such that when the JVM executes the division expression, it
So, the value it produces is numeric.
The Java compiler will generate bytecode such that when the JVM executes the division expression, it
So, the value it produces is numeric.
variableIdentifier = variableIdentifer + 1;
variableIdentifier = variableIdentifer - 1;