P. 1
OOP2 with JAVA

OOP2 with JAVA

5.0

|Views: 1,640|Likes:
Published by semillastan

More info:

Published by: semillastan on Jul 09, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

11/06/2012

pdf

text

original

Without the ability to interact with the rest of the world, a program would be useless.
The interaction of a program with the rest of the world is referred to as input/output
or I/O. Historically, one of the hardest parts of programming language design has
been coming up with good facilities for doing input and output. A computer can be
connected to many different types of input and output devices. If a programming
language had to deal with each type of device as a special case, the complexity would
be overwhelming. One of the major achievements in the history of programming has
been to come up with good abstractions for representing I/O devices. In Java, the
main I/O abstractions are called streams. Other I/O abstractions, such as “files” and
“channels” also exist, but in this section we will look only at streams. Every stream
represents either a source of input or a destination to which output can be sent.

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->