| Share this post! | Vote this! |
|
Persistent data is stored in files, which are stored on hard disks,
flash drives, etc. This website discusses the following ways to access a
file:
File and Streams
Java views each file as a sequential stream of bytes, each file ends with either an end-of-file marker or at a specific byte number record. Three streams are automatically created when we begin executing a Java program
- Sequentially
- Randomly
File and Streams
Java views each file as a sequential stream of bytes, each file ends with either an end-of-file marker or at a specific byte number record. Three streams are automatically created when we begin executing a Java program
- System.in - standard input stream object (normally the keyboard or mouse)
- System.out - standard output stream object (normally the display)
- System.err - standard error stream object (normally the display)



0 comments:
Post a Comment