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)