I'm trying to know what exactly System.out.println(). I read these two articles
What is System, out, println in System.out.println() in Java and What's the meaning of System.out.println in Java?. I know what is System,out,and print, But i don't know how System class can connect to PrintStream class
. How they are related to each other
?
System is a class in the java.lang package.out
is a static member of the System class, So how its becomes an instance of java.io.PrintStream
?How System and PrintStream are related to each other ?