What are the important I/O constructors and methods?
• Hierarchy of IO classes. • The interfaces and abstract classes, as well as the concrete classes implementing these. • The “chaining” of one stream to another to achieve the desired result. (Given a requirement, you should be able to choose the best possible way to chain streams together.) • Different character encodings, and the IO classes capable of making use of the encoding specifications. • The DataInput/DataOutput streams. (How data is written/read back from these streams. How many bytes are actually read/written by different overloaded read() and write() methods.) • How FileInputStream, FileOutputStream, RandomAccessFile may be constructed using File or String arguments. • The PrintStream class and the overloaded println() methods defined in it. The autoflush mechanism. • The RandomAccessFile class (pay attention to the constructor and the methods to move your file pointer back and forth). You should be able to calculate how many bytes the pointer moves when you read/write diff