samedi 5 mars 2016

Android java if (a && b) , while (a && b) later arguments (b) calculated?

Please confirm my today's notice for java (seems inconsistent for me):

if (a && b) , while (a && b):

in while later arguments are not calculated if first argument is false, whereas for if later arguments are calculated (just noted Nullpointer exception with second argument when first is false - have to break one if to three).

Aucun commentaire:

Enregistrer un commentaire