## Explain the operators available in Java

There are many sorts of operators in JAVA.

The operators obtainable in Java artificial language are

given below:-

####
UNARY OPERATOR

#### ARITHMETIC OPERATOR

#### SHIFT OPERATOR

#### BITWISE OPERATOR

#### LOGICAL OPERATOR

#### TERNARY OPERATOR

#### ASSIGNMENT OPERATOR

#### RELATIONAL OPERATOR

➤JAVA single OPERATOR:-

→Java single operators need just one quantity.→The Java single operators perform an associated operation on just one quantity.

UNARY OPERATORS are accustomed performs numerous operators. Better understanding with below the image. an operator which means+ single plus(not necessary to use since variety are positive while not exploitation it)__ single minus; inverts the sign of associated expression.++ Increment Operator;__ __ Decrement operator;! Logical complement operator.

1) Assignment operator =a = 10;

2) Add and +=

a = 10;

a += 20;

3) reckon and Assign -=

a = 10;

a -= 5;

4) Multiply and Assign *=

a = 10;

a *= 5;

Example:

public static void main (String [] args)ten

a += 10;

System.out.println (a); // twenty

a -= 10;

System.out.println (a); // ten

a *= 5;

System.out.println (a); //50

}

b) Arithmetic operators

1) Addition + (for addition and string concatenation)

2) Subtraction - (for subtraction and negation)

3) Multiplication *

4) Division /

5) Modules the troubles

6) Increment ++

7) Decrement --

1) Addition + (for addition and string concatenation)

2) Subtraction - (for subtraction and negation)

3) Multiplication *

4) Division /

5) Modules the troubles

6) Increment ++

7) Decrement --

Example:

public static void main (String [] args)fifteen

System.out.println ("Concatenation of c, d is: " + (c+d)); // SeleniumTesting

System.out.println ("Subtraction of a, b is: "+ (a-b)); //5

System.out.println ("Multiplication of a, b is: "+(a * b)); //50

System.out.println ("Division of a, b is: "+ (a/b)); //2

System.out.println ("Modulus of a, b is: "+ (a%b)); //0

b = 5;

a = ++b;

System.out.println (a); // five

b = 5;

a = --b;

System.out.println (a); //4

b = 5;

a = b+4;

System.out.println (a); // nine

}

c) relative operators

Types of lead to computer programing

i) worth primarily based Result

3 + 5 = 8

2 * 7 = 14

public static void main (String [] args)fifteen

System.out.println ("Concatenation of c, d is: " + (c+d)); // SeleniumTesting

System.out.println ("Subtraction of a, b is: "+ (a-b)); //5

System.out.println ("Multiplication of a, b is: "+(a * b)); //50

System.out.println ("Division of a, b is: "+ (a/b)); //2

System.out.println ("Modulus of a, b is: "+ (a%b)); //0

b = 5;

a = ++b;

System.out.println (a); // five

b = 5;

a = --b;

System.out.println (a); //4

b = 5;

a = b+4;

System.out.println (a); // nine

}

c) relative operators

Types of lead to computer programing

i) worth primarily based Result

3 + 5 = 8

2 * 7 = 14

ii) mathematician / Logical Result

True or false

iii) Constant primarily based Result

#### Relational operators come back mathematician / Logical result

#### 1) ==

#### 2) !=

#### 3) >

#### 4) >=

#### 5) <

#### 6) b)); //False

System.out.println ("a >= b is "+ (a >= b)); //False System.out.println ("a == b is "+ (a == b)); //False System.out.println ("a < b is "+ (a < b)); //True System.out.println ("a

I have clarified my doubts through this. Everyone will benefit and thankyou so much for this article.

ReplyDeletecore java training in chennai

core java classes

core java Training in Anna Nagar

c c++ courses in chennai

javascript training in chennai

Drupal Training in Chennai

Photoshop Classes in Chennai

core java training in chennai

Thankss dear... Your comment is useful my article.

Delete