Hi,
Types of questions on I/O:
-"r","rw" parameter in RandomAccessFile() constructor
-InputStreamReader/OutputStreamWriter
-write() method of InputStream.
-methods of Reader/Writer
-methods of DataInput/DataOutput
-You had to know what happens(a.txt is created or not) when you call this constructors:
FileOutputStream("a.txt");
File("a.txt");
RandomAccessFile("a.txt","rw");
-You must know that, RandomAccessFile's write() method writes to the beginning of file,FileOutputStream in 'append' mode writes to the end of file.
About I/O you can read in Khalid Mughal's chapter 18(you can download it)-this chapter describes what you need for exam.
http://www.ii.uib.no/~khalid/pgjc/jcbook/sample-chapters.html Other sources:
Velmurugan's Notes
http://www.geocities.com/velmurugan_p/ My
SCJP Notes
http://www.j-think.com/jNotes.htm Jamal Hasanov
www.j-think.com