为什么我用System.out.println();输出会报错;而out.println();输出不会。为什么呢?
<%@ page language="java" import="java.util.*,java.text.*" contentType="text/html; charset=utf-8" pageEncoding="utf-8" errorPage="exception.jsp"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>exception内置对象</title> </head> <body> <h1>测试异常的页面</h1> <hr> <% System.out.println(100/0); //抛出运行时异常,算数异常 %> </body> </html>