1.对象为空
Object obj = new Object();
if (obj == null) { }
2.Long Integer对象判断为空
Long SchoolId;
Integer ClazzId;
if (SchoolId.longValue() == 0L){}
if (ClazzId.integerValue() == 0L){}
3.判断字符串为空String
String exerciseCode ;
if(exerciseCode == null || "".equals(exerciseCode)){}