Blog Introductions
In this  blog contains tutorials about  HTML Tutorials, Python Tutorials, CSS Tutorials, How to, PHP Tutorials, Java Tutorials, C++ Tutorials, Tutorials,  Examples, Source code,Learning,
Tips and Software development  services. Java  arithmatic and logical Operations |  Java tutorials Bestitworriors

Java  arithmatic and logical Operations 

                          Java tutorials





Java  arithmatic and logical Operations |  Java tutorials Bestitworriors - Java operation use to perform various function on data like addition , multiplication , subtraction , division , modulus, increment , decrement.By using these operation we perform various function on it.


Some Key Points of Java Operation

  1. + Addition Adds together two values x + y
  2. - Subtraction Subtracts one value from another x - y
  3. * Multiplication Multiplies two values x * y
  4. / Division Divides one value by another x / y
  5. % Modulus Returns the division remainder x % y
  6. ++ Increment Increases the value of a variable by 1 ++x
  7. -- Decrement Decreases the value of a variable by 1 --x
  8. == Equal to x == y
  9. != Not equal x != y
  10. > Greater than x > y
  11. < Less than x < y
  12. >= Greater than or equal to x >= y
  13. <= Less than or equal to x <= y


Code 





public


class operatorss {

public static void main(String[] args) {

int var1 = 15;
int var2 = 10;


int add = var1 + var2;
int sub = var1 - var2;
int div = var1 / var2;
int mul = var1 * var2;




System.out.println("Addition of var1 and var2 ="+add);
System.out.println("Substraction of var1 and var2 ="+sub);
System.out.println("Division of var1 and var2"+div);
System.out.println("Multiplication of var1 and var2"+mul);

}

}





OutPut



Addition of var1 and var2 =25
Substraction of var1 and var2 =5
Division of var1 and var21
Multiplication of var1 and var2150





I hope You really enjoyed this blog . I try my best to make every thing is easy and helpfull to provide to public .You will get more blog about the Programing project and code . Thanks for visiting my blog if you have any querry related to this you can comment here i will try my best to response you back about Java  arithmatic and logical Operations |  Java tutorials Bestitworriors