Buscar
Estás en modo de exploración. debe iniciar sesión para usar MEMORY

   Inicia sesión para empezar


Por supuesto:

Introduction to Java

» Iniciar este curso
(Practica preguntas similares gratis)
Pregunta:

Evaluation order (1)

Autor: Christian N



Respuesta:

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 calificaciones)

1 answer(s) in total