Skip to main content

Q) Explain about System.out and System.in?




A)

public class system
{
       public static PrintStream out;
       public static InputStream in;
       ----
}

->os provided standard input stream that refers to keyword is made a static member of system class whose type is input stream.
->os provided standard output stream that corresponds to monitor is made as a static member in system class where type is print stream.

Comments