Programming Tutorials

Comment on Tutorial - Short-Circuit Logical Operator By aathishankaran



Comment Added by : Java Training

Comment Added at : 2012-10-22 09:42:36

Comment on Tutorial : Short-Circuit Logical Operator By aathishankaran
uses the short circuited (conditional) logical AND operator to avoid division by zero:

(y != 0) && (x / y)

The expression x / y is not evaluated when y != 0 evaluates to false.

http://wisentechnologies.com/it-courses/java-training.aspx


View Tutorial