out.println("hello world");可以在任何地方做输出用,不安全。 System.out.println();在服务器的控制台输出,用做调试最好的说。 <%=i*j%>:只能在jsp中做输出用,更加安全,一般就用它。