This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
okay, I've just wrote a few programs and consulted the API and: a)this won't compile, complains at the writeBytes method. b) This is the correct answer, the boolean append means that the test 'ratty' will be written at the end i.e. appending to the file rat.txt c)this will compile and run, however without the boolean append, it will write over previous contents, and will just produce a file called rat.txt with the string ratty in it.....while the question asks to write ratty to the end of the file. d)Won't compile, as OutputStream is abstract and cannot be instantiated. I hope this is all correct!