Operators
Define Operators in java In Java , the term operator refers to a special symbol (or keyword) that performs an operation on one, two, or three operands and returns a result. Definition An operator in Java is a symbol that tells the compiler to perform a specific mathematical, logical, or relational operation on data (operands). Categories of Operators in Java 1. Arithmetic Operators Used for basic math operations. + (addition) - (subtraction) * (multiplication) / (division) % (modulus) 2. Unary Operators Operate on a single operand. ++ (increment) -- (decrement) ! (logical NOT) + (unary plus) - (unary minus) 3. Relational (Comparison) Operators Compare two values and return true or false . == != > < >= <= 4. Logical Operators Used for boolean logic. && (logical AND) || (logical OR) ! (logical NOT) 5. Bitwise Operators Perform operations on bits. & , | , ^ , ~ , << , >> , >>> 6...