In our previous video of our ongoing course for Core Java we have learnt that what is Array and declaration of Array with types of Array in Java. Now in this video we are going to see what are Operators in Java programming language and also about the Arithmetic operator in Java.
Operator in Java is a symbol that is used to perform different operations while programming. There are different types of operators present in Java like -
Arithmetic operators in Java are used in mathematical expression.
Now we will do Programming for Arithmetic operators in Java.
public static void main (String args)
System.out.println("addition is" + sum);
System.out.println("subtraction is" + sub);
System.out.println("multiplication is" + mul);
System.out.println("division is" + div);
addition is 13
subtraction is 7
multiplication is 30
division is 3.0
So, in this video we have seen that what are Operators in Java with Arithmetic operator in Java. In the next video we will take a look on Relational Operators in Java with it’s practical example.
Have a friend to whom you would want to share this course?