What is System.in Java?

Every programming language supports keyboard input. Different languages come with different styles but any style should connect to the operating system’s input mechanism – a carrier style OS uses to transport data from keyboard to CPU for processing. Java uses System class to connect to OS input mechanism. "in" is an object of InputStream used by System class for this purpose.

System.in with an example is discussed in Keyboard Input – DataInputStream.

Leave a Comment

Your email address will not be published.