Java.io.BufferedReader Class in Java Last Updated : 30 Aug, 2025 Comments Improve Suggest changes Like Article Like Report The BufferedReader class in Java is used to read text from character based input streams by buffering characters. It reduces the number of I/O operations by reading large piece of data at once, making it faster than directly using FileReader or InputStreamReader. It also provides convenient methods like readLine() to read text line by line.Constructors of BufferedReader Class ConstructorAction PerformedBufferedReader(Reader in)Creates a buffering character-input stream that uses a default-sized input bufferBufferedReader(Reader in, int sz)Creates a buffering character-input stream that uses an input buffer of the specified size.Methods of BufferedReader ClassMethodActionclose()Closes the stream and releases system resources. Further read/mark/reset/skip calls throw IOException.mark(int readAheadLimit)Marks the current position in the stream for later reset.markSupported()Checks if this stream supports the mark() operation (always true for BufferedReader).read()Reads and returns a single character or -1 if end of stream is reached.read(char[] cbuf, int off, int len)Reads characters into a portion of an array.readLine()Reads a line of text, terminated by \n, \r or \r\n.ready()Returns true if the stream is ready to be read without blocking.reset()Resets the stream to the most recent mark.skip(long n)Skips the specified number of characters.Implementation of all methods combinedThe content inside the file "file.txt" is as follows:This is first linethis is second line Java import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; class GFG { public static void main(String[] args) throws IOException { // Creating object of FileReader and BufferedReader class FileReader fr = new FileReader("file.txt"); BufferedReader br = new BufferedReader(fr); char c[] = new char[20]; // Illustrating markSupported() method if (br.markSupported()) { // Print statement System.out.println( "mark() method is supported"); // Illustrating mark method br.mark(100); } // Skipping 8 characters br.skip(8); // Illustrating ready() method if (br.ready()) { // Illustrating readLine() method System.out.println(br.readLine()); // Illustrating read(char c[],int off,int len) br.read(c); for (int i = 0; i < 20; i++) { System.out.print(c[i]); } System.out.println(); // Illustrating reset() method br.reset(); for (int i = 0; i < 8; i++) { // Illustrating read() method System.out.print((char)br.read()); } } } } Output:mark() method is supportedfirst linethis is second lineThis is Input in Java Visit Course Comment More info K kartik Improve Article Tags : Java Java-I/O Java-Classes Explore Java BasicsIntroduction to Java4 min readJava Programming Basics9 min readJava Methods7 min readAccess Modifiers in Java6 min readArrays in Java9 min readJava Strings8 min readRegular Expressions in Java7 min readOOP & InterfacesClasses and Objects in Java10 min readAccess Modifiers in Java6 min readJava Constructors10 min readJava OOP(Object Oriented Programming) Concepts10 min readJava Packages7 min readJava Interface11 min readCollectionsCollections in Java12 min readCollections Class in Java13 min readCollection Interface in Java6 min readIterator in Java5 min readJava Comparator Interface6 min readException HandlingJava Exception Handling8 min readJava Try Catch Block4 min readJava final, finally and finalize4 min readChained Exceptions in Java3 min readNull Pointer Exception in Java5 min readException Handling with Method Overriding in Java4 min readJava AdvancedJava Multithreading Tutorial3 min readSynchronization in Java10 min readFile Handling in Java4 min readJava Method References9 min readJava 8 Stream Tutorial7 min readJava Networking15+ min readJDBC Tutorial5 min readJava Memory Management4 min readGarbage Collection in Java6 min readMemory Leaks in Java3 min readPractice JavaJava Interview Questions and Answers15+ min readJava Programs - Java Programming Examples8 min readJava Exercises - Basic to Advanced Java Practice Programs with Solutions5 min readJava Quiz | Level Up Your Java Skills1 min readTop 50 Java Project Ideas For Beginners and Advanced [Update 2025]15+ min read Like