System.out.println in Java | Java Course Online

This Java Course Online “System.out.println in Java” explains clearly what is the internal connectivity of System class and PrintStream class while using System.out.println in Java application.



  • println() is a pre-defined non static method available in PrintStream class.
  • ‘out’ is a pre-defined static object reference variable available in System class
  • Hence we can access println() method using System class ‘out’ variable.
  • The following program shows pre-defined things from Library.


System and PrintStream class Relation in Java


  • We can implement same connectivity to user defined classes also.
  • following program explains clearly how to connection classes same as System.out.println()


Share this