Java Operators
Last updated: 28 Sep 2026
- Arithmetic:
+ - * / % - Relational:
== != < > <= >= - Logical:
&& || ! - Assignment:
= += -= *= /= - Increment and decrement:
++ -- - Ternary:
condition ? a : b
int a = 10, b = 3;
System.out.println(a / b); // 3
System.out.println(a % b); // 1