Additional Java SE Packages

FileOutputStream

The FileOutputStream class in Java is used to write raw bytes to a file. It is part of the java.io package and is typically used for binary data (images, audio, etc.) or writing bytes to text files. Commonly Used Constructors and Methods Simple Program Mahesh wants to write the message “Hello LotusJavaPrince!” into a file …

FileOutputStream Read More »

PipedWriter

PipedWriter is a character stream class in the java.io package used to write characters to a pipe. This pipe can be connected to a PipedReader which reads the characters written by PipedWriter. This mechanism facilitates inter-thread communication where one thread writes data, and another reads it. Commonly Used Constructors and Methods Simple Program Using PipedWriter …

PipedWriter Read More »

Scroll to Top