Standard I/O streams (System.in, System.out, System.err)
In Java, the standard input/output (I/O) streams are represented by the objects System.in, System.out, and System.err. These streams are associated with the console or terminal where your Java program is running and allow you to read input from the user…