Posts

How the data prints on Java console ?

Image
Brief Introduction To print the data on Java console, you need to pass data as an argument into println() method. The process of printing the data on the console is not the same as Java implementation is different from other languages.  Let’s have a look of printing the data on the console. For more clear and explanation click here System  is a final class found in java.lang package that contains Native API and provides the facilities to interact with hardware or standard devices like monitor, keyboard. out  is a pre-defined object of PrintStream class and instantiated during startup and get mapped with video buffer memory. It is declared as a public, static and final variable in System class. println() method of PrintStream class takes an argument to print to the standard console. It is overloaded and calls print() and newline() methods.