Operator groups Group Operators Notes Arithmetic + - / % Integer division truncates: 7 / 2 == 3 Unary ++ -- + - ! i++ returns old value, ++i new value Assignment = += -= = /= %= Compound ops include an implicit cast Relational == != > < >= <= == on objects compares references Logical && ! Short-circuit evaluation Bitwise & ^ << >> >>> >>> fills with zeros (unsigned shift) Ternary cond ? a : b Expression form of if/else Type check instanceof With pattern: if (o instanceof String s) Type casting Widening (implicit, safe): byte → short → int → long → float → double. Narrowing (explicit, may lose data): (int) 3.99 → 3, (byte) 300 → 44. Promotion: in expressions, byte, short and char become int — so byte b = b1 + b2; does not compile. Strings ↔ numbers Integer.parseInt("42")…