Category: I/O Streams

File Reader and Writer

File Reader and Writer Class

Thejava.io.Readerandjava.io.Writerclass in Java IO is used for reading text from a file and writing text to a file respectively. In Java, FileWriter class is used to write character-oriented data to a file and FileReader class...

File class in Java

Java File class

Java File class is used to work on the properties/attributes of File/Folders. (FAT). This class is not used to work on data of the File and it comes from the java.io package. The File...

Serialization in Java Example

Serialization in Java Example

Serialization is a process through which Objects can be converted into streams, the reverse process is termed as De-Serialization. The functionality of serialization and deserialization can be achieved with the help of Serializable interface...