Writer is an abstract class from which all character stream writer classes are derived. The most commonly used output stream classes are BufferedWriter, FileWriter, and PrintWriter. You can use any of these classes whenever a Writer is called for.
Because you can’t create an instance of the Writer class, I won’t cover its constructors and methods here. For more information, see BufferedWriter, FileWriter, and PrintWriter.