JVM调用
private static voidinitializeSystemClass()初始化它的方法。
参见这两行代码:
setOut0(new PrintStream(new BufferedOutputStream(fdOut, 128), true));setErr0(new PrintStream(new BufferedOutputStream(fdErr, 128), true));
这是两种本机方法:
private static native void setOut0(PrintStream out);private static native void setErr0(PrintStream err);
有一篇不错的文章。



