System.out in Java

System.out: This is available in java.lang.System class of Java.

Syntax:

PrintStream java.lang.System.out

The "standard" output stream. This stream is already open and ready to accept output data. Typically this stream corresponds to display output or another output destination specified by the host environment or user.

Approach

Java

public class Systemout {
    public static void main(String[] args) {

        System.out.println(System.out);

    }
}

Output:

java.io.PrintStream@76ccd017


No comments:

Post a Comment