Java assignment operator example

This example will demonstrate the use of assignment operator in Java. Assignment operators can be divided in Simple(“=“) and Shorthand assignment operator(“+=“). In this example you will find the use of both type of operator.

 

1 Comment Java assignment operator example

  1. Java Developer

    Also available some more assignment operator as below :
    <>= Right shift AND assignment operator
    &= Bitwise AND assignment operator
    ^= Bitwise exclusive OR and assignment operator
    |= Bitwise inclusive OR and assignment operator

    Reply

Leave A Comment

Your email address will not be published. Required fields are marked *