Friday 19 August 2016

Java - Operators

4. Operators :
Operators are special symbols which provide the result
Arithmetic Operators
+   Additive (also for String concatenation)
-    Subtraction
*   Multiplication
/    Division
%  Reminder
Relations Operators 
== Equals to 
!=  Not Equal to
>   Greater than
>= Greater than or equal to
<   Less than
<= Less than or equal to
Logical Operators
&& Logical AND
||   Logical OR
!    Logical Not
Assignment Operators
        =  Assignment 
Increment and Decrement Operators 
        ++ Adds 1 to the operand
        --  Subtracts 1 from the operand
Conditional Operators 
        ? : Ternary operator (shorthand ofr if-then-else statement)
Bitwise Operator 
                        ~  Unary bitwise complement
        << Signed left shift
        >> Signed right shift
        >>> Unsigned right shift
        &   Bitwise AND
        ^   Bitwise exclusive OR
        |    Bitwise inclusive OP
Note :
We will learn about every operator while going through chapter.
        
                                                                                          - Nireekshan