File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes What exactly is Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "What exactly is" Watch "What exactly is" New topic

What exactly is

Ernest Lee
Ranch Hand

Joined: Aug 20, 2001
Posts: 145
The is declared as
"public static final InputStream in"...
but InputStream is an abstract class so it cannot be instaniated... so.. what is
Valentin Crettaz
Gold Digger

Joined: Aug 26, 2001
Posts: 7610
in fact is initialized with the static member in of FileDescriptor (
In the System class, in is further initializedas a FileInputStream wrapped around that FileDescriptor

As you can see, is a BufferedInputStream wrapped around a FileInputStream which in turn wraps a FileDescriptor...
You don't really need to know what type is of, but it's good practice to look inside the sources...

Valentin Crettaz
Sun Certified Programmer for Java 2 Platform

[Blog] [Blogroll] [My Reviews] My Linked In
wood burning stoves
subject: What exactly is
Similar Threads an object ??
how is an object?
standard in failing after replacing
Will these methods wait for input?
Help with my code