线上问题汇总

1.NPE 空指针报错

order.getCancelWrongdoer存在nullpointerexception情况

2.this 是当前对象,如果子类调用父类的方法,父类中使用this,调用同名的方法,是调用子类的方法,如果子类中是执行的是父类的方法,需要使用super

 

猜你喜欢

转载自www.cnblogs.com/jhuangsjtu/p/9241426.html
今日推荐