Asked by AnkiT SharmA on Sep 28, 2024

The stream that is automatically available to your Java code is:

A) System.out
B) System.in
C) System.err
D) all of the above

System.out

System.out in Java refers to the standard output stream, typically the console, which is used for outputting data to the user.

System.in

A standard input stream in Java, typically used to read input from the console provided by the user.

System.err

A standard error output stream in Java, used to send error messages and diagnostic output to the console.

  • Comprehend the fundamental principles of streams and file management in Java.
  • Differentiate between input and output streams.