Java Operators and Control-Flow Essentials
Arithmetic Operators
Operator
Description
+ - * / %
Basic math
++ --
Pre- and post-increment/decrement
+ (unary)
Keep sign
- (unary)
Negate
Prefix vs. Postfix
int a = 5;
int b = ++a; // a=6, b=6
int c = a++; // c=6, a=7
String Concatenation
String s = "score:" + 100; // "score:100"
Assignment Operators
+ ...
Posted on Fri, 06 Nov 2026 16:25:59 +0000 by patriklko