Are PrintWriter and FileWriter in Java the same and no matter which one to use? So far I have used both because their results are the same. Is there some special cases where
PrintWriter doesn't throw IOException.You should call checkError() method for this purpose.
PrintWriter
IOException
checkError()