1.

Define System.out.println().

Answer»

System.out.println() is used to print the message on the CONSOLE. System - It is a class PRESENT in java.lang package. Out is the static variable of type PrintStream class present in the System class. println() is the method present in the PrintStream class.

So if we justify the statement, then we can SAY that if we want to print ANYTHING on the console then we need to call the println() method that was present in PrintStream class. And we can call this using the output OBJECT that is present in the System class.



Discussion

No Comment Found