String a=null;
if (a!=null && a.length()>10)
{...}


A single ampersand here would lead to a NullPointerException