Pages

get our extension

Search program

Friday 12 April 2013

Meaning Of System.out.print()

--> System is the class name and out is a static variable in System class.
--> out is called a field in System class. when we call this field, a PrintStream class object is created
     internally. so we can call the print() method
                            System.out.print("Hello Reader");

--> System.out gives the PrintStream class object. This object , by default, represents the standard output
      device, i.e monitor. so the string "Hello Reader" will be sent to the monitor.


No comments:

Post a Comment