A good answer might be:true | ||
Short-circuit OR
Perhaps you noticed that to answer the question you only needed to evaluate the first subexpression: Once you know that this subexpression is true there is no need to go further. true OR anything is true.12 > 6 || 18 > 1 ------ true
The To evaluate X || Y, first evaluate X. If X is true then stop: the whole expression is true. Otherwise evaluate Y and OR the two values.As with the short-circuit AND, be careful when using methods that have side effects. If you are depending on a method's side effect, be sure that the method executes. | ||
QUESTION 8:What is the value of: Click Here after you have answered the question(4 < 8 ) && (12 <= 40 ) && (50 > 1) |