以下程序运行结果为
public class Test {public static void main(String[] args) { Integer i=null;if(i==0){ System.out.println("0");}else{ System.out.println("other");} } }
答案: NullPointerException
来源: http://www.92to.com/bangong/2018/08-29/34047055.html