mardi 8 janvier 2019

Java, will parentheses affect the if condition [duplicate]

This question already has an answer here:

For my particular case, would parentheses affect the if condition?

With Parentheses:

if ( x || (Y && Z) ) {}

Compared to no parentheses:

if ( x || Y && Z ) {}

Would the same result be generated?

Aucun commentaire:

Enregistrer un commentaire