Home Segments Top Top Previous Next

397: Mainline

Java evaluates either the if-true expression or the if-false expression is evaluated; it does not evaluate both. Thus, any side effects, such as variable assignment or display, called for in the unevaluated expression, do not occur.