SEARCH
You are in browse mode. You must login to use MEMORY

   Log in to start


From course:

Introduction to Java

» Start this Course
(Practice similar questions for free)
Question:

Evaluation order (1)

Author: Christian N



Answer:

Subexpressions are evaluated (with respect to the run-time) strictly from left to right. Logical expression are »lazyly« evaluated (conditional evaluation, lazy evaluation) – only as long as the final result is not yet determined: • x && y yields always false, if x == false • x || y yields always true, if x == true Therefore, y is not evaluated in these cases


0 / 5  (0 ratings)

1 answer(s) in total