mardi 22 mars 2016

Which is the best way to use not null condition,Whether direct condition or using utility methods?

I want to check the not null condition in many places ,So which way give the best performance..?

1.Whether if(object !=null){ ... }

2.Whether if(Util.isNotNull(object)){...}

Aucun commentaire:

Enregistrer un commentaire