Tag Archives: nullpointerexception

Yoda conditions in Java .. a dangerous technique

A common practice I have seen is the placing a┬áconstant on the left hand side of an equality statement (usually called a Yoda Condition). Typically┬áthe constant is a string, and this constant is being compared to some other object, or … Continue reading

Posted in Uncategorized | Tagged , , , , , | 2 Comments