This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes I/O quession Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "I/O quession" Watch "I/O quession" New topic
Author

I/O quession

Hades Pan
Ranch Hand

Joined: Nov 25, 2001
Posts: 106
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

Joined: Aug 26, 2001
Posts: 7610
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


SCJP 5, SCJD, SCBCD, SCWCD, SCDJWS, IBM XML
[Blog] [Blogroll] [My Reviews] My Linked In
Hades Pan
Ranch Hand

Joined: Nov 25, 2001
Posts: 106
Oh thans a lot Valentin
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: I/O quession