![]() |
![]() |
![]() |
![]() |
![]() |
|
Java specifies that Boolean operands are always evaluated
from left to right.
Other languages, such as C and C++, do not insist on left-to-right
evaluation in general. In those languages, operators such as && and
||, about which you learned in this chapter, and ?:, about which
you learned in Chapter 22, are exceptions to the general rule.