1. 场景案例 packagecom.gblfy; /** * 自动拆箱引起的空指针问题场景 */ publicclassUnboxingnpe{ privatestaticintadd(intx,inty) { returnx+y; } privatestaticbooleancompare(longx,longy) { returnx>=y; } publicstaticvoidmain(String[]args) { //1.变量赋值自动拆箱出现的空指针 Longcount=null; lo...