File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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



Joined: Jul 10, 2002
Posts: 1
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
Manfred Leonhardt
Ranch Hand

Joined: Jan 09, 2001
Posts: 1492
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:
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( "" );
I agree. Here's the link:
subject: DataInputStream
jQuery in Action, 3rd edition