How is the System class structured/designed with regard to the standard in-/output?
The System class has a public final out method that returns a PrintStream. Is the println() method then a nested method or how does that exactly work if I call System.out.println();?
outis apublic static finalvariable, and since it’s static, one can getoutasSystem.out(i.e. in a static manner).outis aPrintStreamwhich contains theprintln()method, and you’re accessing theprintln()method from thePrintStream(i.e., fromout).