aspose file tools*
The moose likes I/O and Streams and the fly likes DataInputStream Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "DataInputStream" Watch "DataInputStream" New topic
Author

DataInputStream

Karups
Greenhorn

Joined: Jul 10, 2002
Posts: 1
Hai,
Will you explain me about System.out.println()
I know that System is a class name if is a static class we can call without creating object.That is classname.method(System.println())
println() is a method in the class system then why we are using out here. Plz let know this
Thanks
Manfred Leonhardt
Ranch Hand

Joined: Jan 09, 2001
Posts: 1492
Hi,
Welcome to the Ranch. Please register with a valid user name. We prefer to be professional here by using first name + space + last name. Read about our naming policy:
http://www.javaranch.com/name.jsp
Regarding System:
You are correct in saying that it is a static class. However you are wrong about println being a method. The variable out is defined in System:
public final static PrintStream out = nullPrintStream();
The class PrintStream has numerous println methods that can be used in the following manner:
System.out.println( "" );
Regards,
Manfred.
 
wood burning stoves
 
subject: DataInputStream