This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
Just took the first time exam on Friday and got a score of 55%. I didn't expect so many questions of io. It even asked how to append a stream to an existing file. I have been using RHE and Mughal but these two books, occuring to me, do not cover the enough deails for the exam. Mughal is hard to digest in terms of reading. RHE is way too easy to be ready for the exam. I think, for me to try it again, I will spend more time to do more mock exams. just got a copy of JQPlus. Thinking about waiting for two more weeks to take it again.
I can't understand what u telling abt. Mughal and RHE's books. These 2's r real good for exam. If u can complete these 2 book...there is less chance to get bellow 80%... But..yes...Mughal book is a bit tough....
RHE and API are sufficient to cover the entire IO, Mughal is good for Threads, Inner classes and GC. Generally, Mughal is too detailed, I won't call it tough though. Believe me I got 100% in IO in mocks as well as real exam and there was nothing beyond the classes mentioned in RHE. However, make sure that you go though the API doc of those classes, learn abt their methods. I think important classes are - 1) File - know all the methods and their return types, note that list() method return striing arrar, and listFiles() method returns File array. getParent() returns string whereas getParentFile() returns a File etc. 2) RandomAccessFile - Again know it well, it implements DataInput and DataOutput, so has all the methods for reading and writing the java primitives, no need to remember those methods, you know java primitives, the methods are just read and write for all those primitives. And additionally readUTF() and writeUTF() 4) You can not have an instance of RAF in any o/p or i/p constructor. 3) InputStream - Only thing you should know abt it is that it is abstract, so can't be instantiated, and the read trio which is available in all the input streams. 4) OutputStream - abstract again, note the write trio. 5) DataInputStream and DataOutputStream, very imp classes again they implement DataInput and DataOutput respectively, so they have all those read and write primitive methods. 6) BufferedInputStream and BufferedOutputStream Their constructors take parameter to set buffer size. 7) In IO streams, only FileOutputStream takes a boolen parameter suggesting append mode, the second boolean parameter in PrintStream sets autoflush true/false. It is possible to have a trap in exam which asks you if it will append a file. So you should know this. Similar goes for readers/writers. Though it looks like lot of stuff, once you start reading abt IO, you'll understand that it is quite logial, no need to remember , everything falls in place automatically. JQPlus is a good tool, but just make sure that you don't take those answers at face value, make sure you are convinced by that. If not, you can always post a question here. HTH, - Manish
I'm sorry to hear that Sherman Maybe you'll get a better score next time. One little piece of advice, though: Write some code everytime you are not sure about some concept. In fact, write some code for every concept, even if you are certain that you "know" the concept. Moving this to the results forum. [ March 24, 2002: Message edited by: Valentin Crettaz ]