String a=null;
if (a!=null && a.length()>10)
{...}
A single ampersand here would lead to a NullPointerException
Type: Posts; User: Sharad
String a=null;
if (a!=null && a.length()>10)
{...}
A single ampersand here would lead to a NullPointerException