The OutputStream abstract class represents a stream for writing binary data
OutputStream
|
+--FileOutputStream
|
+--BufferedOutputStream.
|
+--ObjectOutputStream
FileOutputStream provides a convenient way to write to a file.
BufferedOutputStream provides better performance.
ObjectOutputStream class plays an important role in object serialization.