
What is System in System.out.println() method? Is it a Class or a Package

Hi Varun
The System class contains several useful class fields and methods. It cannot be instantiated.
Where as out is the "standard" output stream. This stream is already open and ready to accept output data. Typically this stream corresponds to display output or another output destination specified by the host environment or user.
And println is the method which terminate the current line by writing the line separator string.

thanks, ur answer was helpful.

The System class is a predefined class contains several useful class fields and methods. It manipulates various operating system related objects and provides access to the system.
System is a class.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.