Skip to content

Tag Archives: Java-IO package

The Java. io. ObjectStreamField class is a description of a Serializable field from a Serializable interface. This class is serialization’s descriptor for classes. An array… Read More
FileReader is a class in the java.io package which can be used to read a stream of characters from the files. This class uses either… Read More
Java programming language comes with a variety of APIs that helps the developers to code more efficiently. One of those APIs is Java IO API.… Read More
The Java GZIPInputStream class (java.util.zip.GZIPInputStream) can be used to decompress files that are compressed with the GZIP compression algorithm, for instance via the GZIPOutputStream class.… Read More
Java FileWriter class of java.io package is used to write data in character form to file. Java FileWriter class is used to write character-oriented data… Read More
The writer() method of Console class in Java is used to retrieves the unique PrintWriter object which is associated with the console. Syntax: public PrintWriter… Read More
The printf(String, Object) method of Console class in Java is used to write a formatted string to the output stream of the console. It uses… Read More
The reader() method of Console class in Java is used to retrieve the unique Reader object which is associated with the console. This reader() method… Read More
The readLine() method of Console class in Java is of two types: 1. The readLine() method of Console class in Java is used to read… Read More
The flush() method of Console class in Java is used to flush the console and to force any buffered output to be written immediately. Syntax:… Read More
The readPassword() method of Console class in Java is of two types: 1. The readPassword() method of Console class in Java is used to read… Read More
The format(String, Object) method of Console class in Java is used to write a formatted string to the output stream of the console. It uses… Read More
Java IO(Input/Output) is used to perform read and write operations. The java.io package contains all the classes required for input and output operation. Whereas, Java… Read More
The mark() method of BufferedReader class in Java is used to mark the current position in the buffer reader stream. The reset() method of the… Read More
The reset() method of BufferedReader class in Java is used to fix or mark the position at the last marked position so that the same… Read More

Start Your Coding Journey Now!