JAVA | Give the difference between Buffered Reader and Buffered Writer class.

Buffered Reader 
1. It extends from the reader class. 
2. Its key constructor arguments are Reader. 
3. It provides the read() and readLine() methods. 
4. It implements the mark() and reset() methods. 

Buffered Writer  
1. It extends from the writer class. 
2. Its key constructor arguments are Writer 
3. It provides the close(), flush(), newLine(), and write() methods.
4. It does not implement the mark() and reset() methods. 

Post a Comment

0 Comments