Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6873177
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T04:01:43+00:00 2026-05-27T04:01:43+00:00

I need to understand the difference between these two classes and how they work

  • 0

I need to understand the difference between these two classes and how they work with each other. I understand that FileReader reads characters from a file one character at a time and the BufferedReader reads a large chunk of data and stores it in a buffer and thus makes it faster.

In order to use a BufferedReader, i have to provide it a FileReader. How does the BufferedReader class use the FileReader if it reads the file differently? Does it mean that BufferedReader uses FileReader and therefore behind the scenes the characters are still read one character at a time? I guess my question is how does the BufferedReader class use the FileReader class.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T04:01:44+00:00Added an answer on May 27, 2026 at 4:01 am

    First of all, BufferedReader takes a Reader, not a FileReader (although the latter is accepted).

    The Reader abstract class has several read() methods. There is a read-one-character version as well as two versions that read a block of characters into an array.

    It only makes sense to use BufferedReader if you’re reading single characters or small blocks at a time.

    Consider the following two requests:

    char ch1 = fileReader.read();
    char ch2 = bufferedReader.read()
    

    The first one will go to the underlying file, whereas the second one will most probably be satisfied from the BufferedReader‘s internal buffer.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to understand difference between those two and really need a explanatory
I understand that I need to use LoadLibrary(). But what other steps do I
What is the difference between these two ways of casting in Java? (CastingClass) objectToCast;
I need to understand the differences between windows main/mdi/child/dialogs.... how win32 messages should be
What are the top 3 main concepts in WPF that you need to understand
I understand the need to test a class that has logic (for instance, one
I am not able to find actual differences between these two Java EE servers.
I understand the differences between CHAR and VARCHAR, one being fixed-length and the other
I understand that these methods are for pickling/unpickling and have no relation to the
I need to write a program that will communicate with other .NET programs ...

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.