This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Operator precedence &&,||,&,| Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Operator precedence &&,||,&,|" Watch "Operator precedence &&,||,&,|" New topic
Author

Operator precedence &&,||,&,|

Mansi Dave
Ranch Hand

Joined: Aug 06, 2002
Posts: 49
Hi Everyone,
What is the order of precedence for these logical and bitwise operators?
thanks.
Mansi
Rory French
Ranch Hand

Joined: Apr 03, 2003
Posts: 97
The order is as follows (highest precedence to lowest) :
&
^
|
&&
||
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Operator precedence &&,||,&,|
 
Similar Threads
< operator
From deepak's mock
Multiple Assignments from Khalid's book
Operators
code behaving strangely