false && false
→ false
false && true
→ false
true && false
→ false
true && true
→
The evaluation is guaranteed to proceed in strict left to right order, and if any boolean is false, it does not evaluate any expressions to the right of
// if s is null, Java won't try to test the length of s if ( s != null && s.length() > 0 ) { out.println( "non empty string" ); }
|
|
available on the web at: |
http://mindprod.com/jgloss/mccarthyandoperator.html |
optional Replicator mirror
|
J:\mindprod\jgloss\mccarthyandoperator.html | |
![]() |
Please email your
feedback for publication,
letters to the editor, errors, omissions, typos, formatting errors, ambiguities, unclear
wording, broken/redirected link reports, suggestions to improve this page or comments to
Roedy Green :
| |
| Blog | Canadian
Mind
Products
IP:[65.110.21.43] Your face IP:[50.16.36.153] |
|
| Feedback | You are visitor number 11. | |