以下哪种情况会触发Java中的`NullPointerException`?
答案解析
NullPointerException是在尝试访问一个空对象的成员(方法或属性)时抛出的异常。A是ArrayIndexOutOfBoundsException,C是ArithmeticException,D是IOException或FileNotFoundException。
正确答案:B