Why Java uses PrintStream and InputStream by default for System class?

13 hours ago 3
ARTICLE AD BOX
import java.lang.System; import java.util.Scanner;

; we always take user input through this class. but i have a question, why java uses PrintStream and  `InputStream` for inputs through the console and not any other alternatives. can you please clarify me about when to use which input output classes whether they are character stream classes or the byte stream classes.

Read Entire Article