๐น 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)