Operators In Java

Rahul Agarwal
2 min readSep 23, 2021

The word “operation” refers to calculating a value using operands(like values or expressions)and a math operator.

The broad category of operators defined in java can be classified into :

  1. Logical Operators
  2. Bit-wise Operators
  3. Arithmetic Operators
  4. Relational Operators

Below image depicts the same :

Apart from the above there are some extra operators which are used to handle special operations/situations.

First let us focus on the above four categories.

Arithmetic Operators : We all must have been studied algebra during our school times. Arithmetic operators are used in arithmetical operations.

Pic Credit : Google Images

Bit-wise Operators : These operators works on the individual bits of the operands and can be applied on long,int,short,byte and char .

Pic Credit : Google Images

Relational Operators : They define equality and ordering . The outcome of these will be a boolean value .Usually used in If statements and other looping statements.

Pic Credit : Google Images

Logical Operators : They work on the boolean operands .Used to control the flow of execution.

Thanks for reading!

Rahul

--

--

Rahul Agarwal

I am a Software Analyst. Fond of Travelling and exploring new places. I love to learn and share my knowledge with people. Visit me @rahulqalabs