Difference between java.io.PrintWriter and java.io.BufferedWriter?
PrintWriter gives more methods (println), but the most important (and worrying) difference to be aware of is that it swallows exceptions. You can call checkError later on to see whether any errors have occurred, but typically you’d use PrintWriter for things like writing to the console – or in “quick ‘n dirty” apps where you … Read more