FileReader in Java
FileReader in Java is an input stream that reads data in the form of characters from a text file. In other words, FileReader is a character-based input stream that is used to read characters from a file. Java FileReader Class…
FileReader in Java is an input stream that reads data in the form of characters from a text file. In other words, FileReader is a character-based input stream that is used to read characters from a file. Java FileReader Class…
BufferedReader in Java is a buffering input character stream that reads text from the buffer rather than directly underlying input stream or other text sources. It adds the buffering capability to the underlying input character stream so that there is…
An InputStreamReader in Java is a character input stream that uses the stream of bytes as its data source. It acts as a bridge between an incoming stream of bytes and an outgoing sequence of characters and converts a byte…
Reader in Java is an abstract class that reads characters from the files. In simple words, the reader class reads character streams. It is the superclass of all reader subclasses. The concrete class that extends Reader class operates on Unicode…
So far, we have used variables and arrays to store data inside Java programs. This approach creates two problems. Data stored in a program is lost when the program is terminated. It means storage is temporary. Large volumes of data…
In this tutorial, we will understand the basic concepts of abstract, absolute, relative, and canonical pathnames in java with suitable examples. What are Path and Pathname? A path is a hierarchy of directories that locate a file or a directory.…

RandomAccessFile in Java is a class that allows data to be read from and written to at any location in the file. In other simple words, RandomAccessFile class allows creating files that can be used for reading and writing data…
PushbackInputStream in Java is an input stream that pushes (i.e. returns) a single byte or character back into the input stream to reread. In other words, PushbackInputStream is a buffer stream that adds “push back” functionality to an input stream…
PrintStream in Java is an output stream that provides various methods to print representations of various data values conveniently. For example, System.out is a PrintStream that is the most commonly used output stream in Java programs. It is an instance…