System.err in Java

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

Syntax:

PrintStream java.lang.System.err

The "standard" error output stream. This stream is already open and ready to accept output data.

Approach

Java


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

        System.out.println(System.err);
    }
}

Output:

java.io.PrintStream@76ccd017


No comments:

Post a Comment