Java Operators
Java Operators are symbols that perform operations on variables and values. Java provides many types of operators which can be used according to our usage. They are classified into following types: Arithmetic Operators Assignment Operators Relational Operators Logical Operators Unary Operators Bitwise Operators Arithmetic Operators Arithmetic operators are used to perform mathematic operations on variables and data. They operate on numeric values. In simple words they can be used to perform the mathematical operations of addition, subtraction, multiplication, and division. Operator Description + Performs addition – Performs subtraction * Performs multiplication / Performs division % Returns the remainder of the division Sample Code: class Arithmetic { public static void main (String[] args) { // variables int a = 10 , b = 5 ; // Print sum using addition operator System. out . println ( "a + b = " + (a + b)); // Print difference of a and