A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Take Control of Upgrading to Yosemite
Take Control of Automating Your Mac
this week in the
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
subject: What exactly is System.in?
System.in an object ...how ??
how is System.in an object?
Help with my code
Will these methods wait for input?
standard in failing after replacing
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014