Java Operators
Operators are divided into 4 parts: 1. Arithmetic 2. Bitwise 3. Assignment 4. Comparision 5. Logical 1.Arithmetic Operators i) + ii) - iii) * iv) / v) % (Modulo - gives the remainder of division) vi) ++ (Increment Operator) vii) -- (Decrement Operator) * Increment and Decrement operator can be used in 2 ways :- 1) Prefix ++b; // This tells the compiler to increment the value of "b" on the same line CODE: output: Here the value a does not get 6 because it is updated on next line 2) Postfix b++; //Increments the value on the next line CODE: Output: Here the value get updated because postfix tells to update the value on the same line