Java-Arithmetic Compound Assignment Operators

Arithmetic Compound Assignment Operators Java provides special operators that can be used to combine an arithmetic operation with an assignment. As you probably know, statements like the following are quite common in programming : In Java, you can rewrite this statement as shown here : This version uses the += compound assignment operator. Both statements … Read more…

Java-Arithmetic Operators

Operators An operator is a symbol that takes one or more arguments and operates on them to produce a result. Operators are used in programs to manipulate data and variables. Arithmetic Operators¬† Arithmetic operators are used to construct mathematical expressions. The usual arithmetic operator +, -, *, / are used in java for addition, subtraction, … Read more…