Sunday, March 18, 2012

Mean of System.out.print();



In java to print a message on console normally use System.out.print() method. the description of this method as-

System-> 'System' is a class. which exists in java.lang package.
out  -> 'out' is the object of class PrintStream. which is exists in 'java.io' package.
         out is also final or static. so it can we directly access by the name of the class
          like 'System.out'.
print()-> it is a method of the PrintStream class. which is access by the 'out' object of that class in 'System' class.
           
              So to access the print method we write
              System.out.print();


For Further Reading,
General, Java

0 comments:

Post a Comment


 

Site Status

Man Behind Technical Today

Hello, I am Navin Bansal. I am a student of MCA in Rajsthan Institute of Engineering and Technology and owner of this blog. I share my view and ideas among people.