Basic and Compound Arithmetic Operators in Java




This video tutorial explains about the basic and compound arithmetic operators available in java.

You will learn about the basic arithmetic operators available in java such as addition i.e +, subtraction i.e -, multiplication i.e *,division i.e / and modulus i.e % operators along with the compound arithmetic operators such as +=, -=, *=, /=, %= in detail with examples.

Source code for this video tutorial


package LearningJava;

public class Programming {
 public static void main(String[] args) {
  int num1,num2;
  num1 = 25;
  num2 = 6;
  
  num1 %=  num2; 
  System.out.println(num1);  
 }
}

Back To Top