Jump to content

Java:Reference - Operators

- - - - -

  • Please log in to reply
No replies to this topic

#1
John

John

    Writes binary right handed and hex left handed

  • Moderators
  • 6,321 posts
  • Location:New York, NY
Arithmetic Operators

[+]      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”)

Logical Operators


[==]  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

Bitwise Operators
[&]   AND operator

[|]   (pipe) exclusive OR operator

[^]   inclusive OR operator

Pre and Post Operators (seen in loops)
[++]   auto increment operator 

[--]    auto decrement operator

Conditional Operators
[&&]   AND

[||]    OR

Originally posted as Java Operators

Edited by John, 01 August 2010 - 08:56 AM.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users