Tuesday, 21 November 2017

Object Oriented Programming using JAVA


(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

= += -= *= /= %= &= ^= |= <<= >>= >>>=