What is System.out.println in java?


Simple Java Question.

Q). What is meaning of System.out.println in java.
Ans).  System is Class, out is static memeber of the class & println is method.

System is a class in the java.lang package. out is a static member of the System class, and is an instance of java.io.PrintStream . println is a method of java.io.PrintStream . This method is overloaded to print message to output destination, which is typically a console or file.

******************************************************************************


Comments