• Parth

Explain System.out.println() Statement?

class System {

static PrintStream out;


System : It is a class name present in java.lang package

out: It is a static variable of PrintStream type present in System class.

println(): It is a method present in PrintStream  class.

So When we write System.out.println() it call System class out static variable of type PrintStream  and call its println() or print() method