DEV Community

Sonali Gupta
Sonali Gupta

Posted on

DECODING...java word by word

Image description

๐Ÿ”น System
A built-in class in Java that belongs to the package java.lang.

It contains useful tools for interacting with the system โ€” like input/output, error handling, etc.

It has a special member called out that helps send output to the screen.

๐Ÿ”น out
A static object inside the System class.

It represents the standard output stream โ€” usually your terminal or console.

It is of type PrintStream.

๐Ÿ’ก Imagine out as Javaโ€™s speaker ๐Ÿ“ข โ€” whatever you send here gets spoken (printed) to your screen.

๐Ÿ”น println
A method of PrintStream class (which out is an object of).

println stands for print line.

It prints the message and then moves to the next line (like pressing Enter).

๐Ÿ’ก If print() is like typing on the same line, println() presses Enter after printing.

Top comments (0)