A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Programmer Certification (SCJP/OCPJP)
What exactly is System.in?
Joined: Aug 20, 2001
Oct 22, 2001 09:00:00
The System.in is declared as
"public static final
is an abstract class so it cannot be instaniated... so.. what is System.in?
Joined: Aug 26, 2001
Oct 22, 2001 09:11:00
in fact System.in is initialized with the static member in of
In the System class, in is further initializedas a
wrapped around that
[...] FileInputStream fdIn = new FileInputStream(FileDescriptor.in); [...] setIn0(new BufferedInputStream(fdIn)); [...]
As you can see, System.in is a
wrapped around a
which in turn wraps a
You don't really need to know what type is System.in of, but it's good practice to look inside the sources...
Sun Certified Programmer for Java 2 Platform
SCJP 5, SCJD, SCBCD, SCWCD, SCDJWS, IBM XML
My Linked In
I agree. Here's the link:
subject: What exactly is System.in?
how is System.in an object?
standard in failing after replacing
Will these methods wait for input?
System.in an object ...how ??
Help with my code
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013