What is System.out.println() ?
//Code is start from here
import java.io.*;
//Kapil will Replace the System
class Kapil
{
//shukla will Replace the out
public static PrintStream shukla = new PrintStream(System.out);
}
class Txt
{
public static void main(String args[])
{
// Kapil.shukla can be used in place of System.out
Kapil.shukla.println("Hello World");
}
}
Watch Following Video to Learn in Detail :
No comments:
Post a Comment