This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

I/O quession

 
Hades Pan
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which one of the following is used to read ascii codes from a file ?
a)FileReader
b)InputStream
c)characteArrayReader
d)InputStreamReader
e)OutputStreamReader
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
a. True. From the API
Convenience class for reading character files.

b. False, InputStream is abstract and read bytes
c. False, There is no CharacterArrayReader but CharArrayReader and it does not read from a file but from a char array
d. True, if you chain a FileInputStream with an InputStreamReader you can read character from a file
e. False, there is no OutputStreamReader class
HIH
------------------
Valentin Crettaz
Sun Certified Programmer for Java 2 Platform
 
Hades Pan
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh thans a lot Valentin
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic