summary of operators code example
Example 1: summary of operators java
&& Conditional-AND
|| Conditional-OR
?: Ternary (shorthand for
if-then-else statement)
Example 2: summary of operators java
+ Additive operator (also used
for String concatenation)
- Subtraction operator
* Multiplication operator
/ Division operator
% Remainder operator