java - What is the value of out field in System class? -
i understand out field in system class , reference object of printstream print(system.out.getclass());
returns class java.io.printstream.
also presume declaration of out in system class should public static printstream out;
my query here value of 'out' field in system class.
can not like
public static printstream out = new printstream(system.out);
just curious
when check source code of system
class, can see set via native method calls:
private static native void setout0(printstream out);
Comments
Post a Comment