samedi 20 avril 2019

Are there any differences between these two if-statements? if (x==2) and if (2==x)

I was developing a basic Java program that suddenly this question bore to my mind, and I'd like to know which piece of code performs better.

if (x==2){ }

if (2==x){ }

Aucun commentaire:

Enregistrer un commentaire