Operators are operations on variables and values. In this chapter, We will talk about operators in Java, There are many types of operators that we will discuss one by one in this chapter.
In the example below, we use the + operator to add together two numbers:
int x = 10 + 10; //20
- Arithmetic operators
- Assignment operators
- Comparison operators
- Logical operators
- Bitwise operators
Java Assignment Operators
assignment operator (=) to assign the any value
int x = 20;
Java Comparison Operators
used to compare values:
|!=||Not equal to|
|>=||Greater than or equal to|
|<=||Less than or equal to|
Java Logical Operators
used to determine the logic between variables or values
in our further chapters we will use these operators so just remember it.
Thanks, few Java operators were discussed if you like this chapter please give a thumbs up.
Are you facing problems in understanding this article?
You can watch the video. Watch it now