System Out Println in Java

In this class, We discuss System Out Println in Java.

The reader should have prior knowledge of input and output streams. Click here.

The statement System.out.println() displays data on the console.

The System is a class in the package java.lang.

Out is a static variable belonging to the class printStream.

We can call static variables using class name.

printstream is a subclass of filteroutputstream.

filteroutputstream is a subclass of outputstream.

In our last class, we discussed outputstream class.

JVM will be responsible for giving the object of printstream class to the variable “out”.

println is a method in the printstream class.

We can use all the methods available in the printstream class.