0Pricing
Java Academy · Lesson

Operators

Operators

Introduction

Hello,

Java offers us many operators to operate on the data we have. With the help of these operators, we can manipulate the data we have.

They are Arithmetic operators, the type of operator we now know most of from mathematics.

Addition operator

Addition Operator

We do the addition with the + operator.

class Main{

public static void main(String[] args){
   int num1 = 10;
   int num2 = 20;
   int num3 = num1 + num2;
   System.out.println(num3);
 }
}
← Back to Java Academy