4. Operators:
Operator is a symbol, it will perform a particular operation over the provided operands.
To design java application, java has provided the following operators:
1. Arithmetic Operators:
+, -, *, /, %, ++, --, ....
2. Assignment Operators:
=, +=, -=, *=, /=, %=
3. Comparison Operator:
==, !=, <, >, <=, >=
4. Boolean Logic Operator:
&, |, ^
5. Bitwise Logical Operator:
&(and), |(or), ^(xor), <<, >>
6. Ternary Operator:
Expre1? Expr2: Expr3
Note: if Expre1 is true then Expr2 execute and if false then Expr3 will execute.
7. Short circuit Operator:
&&(double and), ||(double or)
Operator is a symbol, it will perform a particular operation over the provided operands.
To design java application, java has provided the following operators:
1. Arithmetic Operators:
+, -, *, /, %, ++, --, ....
2. Assignment Operators:
=, +=, -=, *=, /=, %=
3. Comparison Operator:
==, !=, <, >, <=, >=
4. Boolean Logic Operator:
&, |, ^
5. Bitwise Logical Operator:
&(and), |(or), ^(xor), <<, >>
6. Ternary Operator:
Expre1? Expr2: Expr3
Note: if Expre1 is true then Expr2 execute and if false then Expr3 will execute.
7. Short circuit Operator:
&&(double and), ||(double or)
No comments:
Post a Comment