Let's say you've got an exam question on I/O that shows you've got to invoke the close() method and have to choose which reference to invoke it on. Either closing the fileWriter or the bufferedWriter will compile and execute without problems. So which do you choose?
Yeah, I didn't copy in all of the code from the example in the book.
Regardless, there was a drag and drop question on the exam with this issue. So I guess my question is, will the exam accept either fr.close() or br.close() as a correct answer? I'm not sure if the Prometric exam has the logic to allow for multiple correct answers in one item.