samedi 21 mars 2020

Does this operation run if its inside if statement brackets? Java [duplicate]

I couldn't find out by searching for it in Google so I had to ask this question. I know in PHP (at least some on cases) if you write an operation inside the brackets it will make it execute, so, in Java(Android) will this execute:

 if (setCharacteristicNotification(gattCharacteristic, true) == true) {  //will setCharacteristicNotification execute or will it just check if it's true?
 ////
}

Aucun commentaire:

Enregistrer un commentaire