core-libs-dev Digest, Vol 146, Issue 92

David Holmes david.holmes at oracle.com
Sat Jun 22 14:44:31 UTC 2019


Hi Prakhar,

On 22/06/2019 1:28 am, Prakhar Makhija wrote:
> Topic: OR operator represented by ||

That should be the subject of your email - not a reply to a digest.

> Query: The expression evaluation of the operands, of OR operator, does it
> happen in parallel, when Java code runs, in the current versions?

No, there is no parallel evaluation of anything in Java. It would be 
wrong to do so in this case as:

"The conditional-or operator || operator is like | (§15.22.2), but 
evaluates its righthand operand only if the value of its left-hand 
operand is false."

David


More information about the core-libs-dev mailing list