wood burning stoves
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
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
It is sorta covered in the JavaRanch Style Guide.
subject: doubt on EL logical operators
It's not a secret anymore!