File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Operator precedence &&,||,&,|" Watch "Operator precedence &&,||,&,|" New topic

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?
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:
subject: Operator precedence &&,||,&,|
It's not a secret anymore!