final and equals

never write var.equals("AA") ==> nullpointerException
always use "AA".equals(var)