System.out.println 与 System.err.println 的区别

err 是运行期异常和错误反馈的输出流的方向 System.err.println 只能在屏幕上实现打印,即使你重定向了也一样 用 err 打印出的 字符串,再 eclipse 的 console 会显示成红色 标准输出往往是带缓存的,而标准出错没有缓存(默认设置,可以改)System.out.println("1");System.out.println("2");System.err.println("3");上述输出 1、2 顺序输出,3 输出顺序不定