Java Operators

Arithmetic Operators
[code][+] addition operator (also used for concatenation – see later tutorial)
[-] subtraction operator
[*] multiplication operator
[/] division operator
[%] modulus operator (used to find the remainder)
[=] assignment operator (NOT “equal to”)[/code]

Logical Operators
[code][==] equal to operator
[<] less than operator
[>] greater than operator
[<=] less than or equal to operator
[>=] greater than or equal to operator
[!= ] not equal to
[!] negates a Boolean value[/code]

Bitwise Operators
[code][&] AND operator
[|] (pipe) exclusive OR operator
[^] inclusive OR operator[/code]

Pre and Post Operators (seen in loops)
[code][++] auto increment operator
[--] auto decrement operator[/code]

Conditional Operators
[code][&&] AND
[||] OR[/code]

No related posts.

Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Notify me of followup comments via e-mail. You can also subscribe without commenting.