Back to Top

Tuesday, 31 January 2012

JAVA: FileInputStream vs FileReader

Class FileInputStream:
  • It is use for reading stream of data from a file in the form of raw bytes(8-bit).
  • Very useful to read image.
  • It can also read character files.
Hierarchy of Class FileInputStream:
Hierarchy of Class FileInputStream in java




    Class FileReader: 
    • It is use to read stream of character data.
    • It can only read character data, so its the best way of reading character files.
     Hierarchy of Class FileReader:
    Hierarchy of Class FileReader in Java

      4 Responses to “ JAVA: FileInputStream vs FileReader ”

      Anijit Sarkar said...
      5 March 2012 at 02:01

      wyc!! .... & Thanks for commenting! :)


      Anonymous said...
      20 March 2012 at 19:07

      excellent questions....i am a basic learner learning java at this time and i find interesting concepts.....
      thankyou....


      Anijit Sarkar said...
      22 March 2012 at 21:14

      Thanks for commenting!... If u have any questions regarding these topics feel free to ask me anytime!!


      Courses said...
      21 March 2022 at 07:58

      Really this article is truly one of the best in article history and am a collector of old "items" and sometimes read new items if i find them interesting which is one that I found quite fascinating and should be part of my collection. Very good work!
      Data Scientist Course in Gurgaon


      Post a Comment

      Popular Posts

      Subscribe via Email
      Subscribe Java Interview Questions via Email
      All Rights Reserved JAVA INTERVIEW QUESTIONS | Privacy Policy | Anijit Sarkar