Arithmetic operators in java example

In this Example you will learn about different Arithmetic Operator in Java and their functioning.

Arithmetic Operators in Java

 

  • +     (Addition)
  • –      (Subtraction)
  • *     (Multiplication)
  • /     (Division)
  • %    (Modulus)
  • ++ (Increment)
  • —    (Decrement)

Example Code

 

Output of above programe would be

Leave A Comment

Your email address will not be published. Required fields are marked *