Operators in Java, types of Operators in Java, Operators supported by Java


Operators in Java, types of Operators in Java, Operators supported by Java

An Operator performs a particular operation on the Operands it is applied on.
Symbols which are used to perform any kind of operations on operands are called Operators for Example---

a=10;
b=20;
c=a+b;

in above equation the a, and c are operands and the (+) symbol is an operator.


Types of Operators in Java :-



  • Assignment Operators
  • Arithmetic Operators
  • Unary Operators
  • Equality Operators
  • Relational Operators
  • Conditional Operators
  • instanceof Operators
  • Bitwise Operators
  • Shift Operators


Assignment Operators


OperatorDescriptionExample
= Assignmentint i=10;
int j=i;


Arithmetic Operators

OperatorDescriptionExample
+ Additionint i = 8 + 9; byte b = (byte) 5+4;
- Subtractiontint i = 9 – 4;
* Multiplicationint i = 8 * 6;
/ Divisionint i = 10 / 2;
% Remainderint i = 10 % 3;

{ 0 comments... read them below or add one }

Post a Comment