jQuery in Action, 3rd edition
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes doubt on EL logical operators Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "doubt on EL logical operators" Watch "doubt on EL logical operators" New topic

doubt on EL logical operators

Suchitra Bhat
Ranch Hand

Joined: Dec 30, 2005
Posts: 62

some one please tell me do logical operators of EL AND :&& and OR :|| work similar to short circuit operators in java or do they work similar to simple logical operators??

Thanks in Advance,
Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

JSP. Binary operator - A {&&,||,and,or} B
� Coerce both A and B to Boolean, apply operator
The operator stops as soon as the expression can be determined, i.e., A and B
and C and D � if B is false, then only A and B is evaluated.

[My Blog]
All roads lead to JavaRanch
I agree. Here's the link: http://aspose.com/file-tools
subject: doubt on EL logical operators
It's not a secret anymore!