Assignment Operators - Supercoders | Web Development and Design | Tutorial for Java, PHP, HTML, Javascript Assignment Operators - Supercoders | Web Development and Design | Tutorial for Java, PHP, HTML, Javascript

Breaking

Post Top Ad

Post Top Ad

Monday, March 25, 2019

Assignment Operators

Assignment Operators

üThere are many assignment operators, including the following:

Bitwise Operator


Bitwise Operator

üApplied to integer type – long, int, short, byte and char.


Relational operators

ü>  greater than

ü>=  greater than or equal to

ü<  less than

ü<=  less than or equal to

ü= =  equal to

ü!=  not equal to

üThe outcome of these operations is a boolean value.

ü= = , != can be applied to any type in java.

üOnly numeric types are compared using ordering 
operator.

Relational Operator

üint done;
    ……

 if(!done) ….                // Valid in C /C++ but not in
 java

 if(done)….

üif (done == 0)….

  if(done!=0) ……..             //Valid in Java

No comments:

Post a Comment

Post Top Ad