(1) What are the different types of operators in Java?
Ans:
There are many types of operators in java which are given below:
- Unary Operator,
- Arithmetic Operator,
- shift Operator,
- Relational Operator,
- Bitwise Operator,
- Logical Operator,
- Ternary Operator and
- Assignment Operator
TUSAR BAL
Unary Operator:
++ , --
Arithmetic Operator:
* / % + -
shift Operator
<< >> >>>
Relational Operator
< > <= >= == !=
Bitwise Operator
& ^
Logical Operator
&& ||
Ternary Operator
? :
Assignment Operator
= += -= *= /= %= &= ^= |= <<= >>= >>>=