Java Reference
In-Depth Information
10
I/O in Java
In This Chapter
Streams vs. Record-Based I/O
The File Class
InputStream and OutputStream
Serialization
Readers and Writers
RandomAccessFile
Exercises
Reviewing the Exercises
Input and output usually play a big role in COBOL batch programs, especially in
legacy systems. I/O operations are considerably different in Java than they are in
COBOL, yet it is possible to do most of the same things in Java as you would in
COBOL. If you find yourself working on a Java enterprise application, you will be
doing very little traditional file I/O because such systems are usually built utilizing
database technologies. Most Java applications use database technologies even when
they are single-user systems. Nevertheless, I/O plays a much broader role in Java
than simple file operations, and an understanding of how it works in Java is essen-
tial to becoming a complete Java programmer.
243
Search WWH ::




Custom Search