Skip to main content

Operators in Java

Let's start coding!
This post is all about operators in Java. Previous we had learnt about how to declare variables, what are the data types, how to initialize variables, etc and now you might want to know what to do with them.

Operators are a good place to start with Java programming.

What are operators in Java?

Operators are special symbols that perform some tasks/ operations on more than one variables called operands and returns a result.

Assignment, Arithmetic and Unary Operators

  1. Simple Assignment Operator " = ": This is the most commom operator that you'll come across. It's primary purpose is to assign the value from it's right to the operand at its left.
Eg: int count=1;
Here the integer type of variable 'count' is assigned the value 1.

Comments