Home Python C Language C ++ HTML 5 CSS Javascript Java Kotlin SQL DJango Bootstrap React.js R C# PHP ASP.Net Numpy Dart Pandas Digital Marketing

Java Operators


Java Operators

In Java, operators are symbols that perform operations on operands. Here's a brief overview of the different types of operators in Java:

  1. Arithmetic Operators:

    • Addition +
    • Subtraction -
    • Multiplication *
    • Division /
    • Remainder % (Modulus)
  2. Assignment Operators:

    • Simple assignment =
    • Compound assignment operators like +=, -=, *=, /=, %= etc.
  3. Unary Operators:

    • Unary plus +
    • Unary minus -
    • Increment ++
    • Decrement --
    • Logical complement !
  4. Relational Operators:

    • Equal to ==
    • Not equal to !=
    • Greater than >
    • Less than <
    • Greater than or equal to >=
    • Less than or equal to <=
  5. Logical Operators:

    • Logical AND &&
    • Logical OR ||
    • Logical NOT !
  6. Bitwise Operators:

    • Bitwise AND &
    • Bitwise OR |
    • Bitwise XOR ^
    • Bitwise NOT ~
    • Left shift <<
    • Right shift >>
    • Unsigned right shift >>>
  7. Conditional Operator (Ternary Operator):

    • condition ? expr1 : expr2
  8. Instanceof Operator:

    • instanceof
  9. Dot Operator:

    • Used to access fields, methods, and nested types of a class.


Advertisement





Q3 Schools : India


Online Complier

HTML 5

Python

java

C++

C

JavaScript

Website Development

HTML

CSS

JavaScript

Python

SQL

Campus Learning

C

C#

java