The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes jchq I/O question Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Professional Certification » Programmer Certification (SCJP/OCPJP)
Reply Bookmark "jchq I/O question" Watch "jchq I/O question" New topic
Author

jchq I/O question

Bing Lu
Ranch Hand

Joined: Oct 10, 2000
Posts: 42
Can any1 tell me why all the selections are correct?
I'm wondering about 2) & 3)
thanks
Which of the following statements are true?
1) Java can display character sets independently of the
underlying operating system
2) The InputStreamReader may take an instance of the
RandomAccessFile class as a constructor
3) An InputStreamReader may act as a constructor to an
OutputStreamReader to convert between character
sets
4) Java stores text internally as Unicode escape strings
Jane Griscti
Ranch Hand

Joined: Aug 30, 2000
Posts: 3141
Hi Bing,
2. I'm not sure about this either. On the surface, doesn't look as if it would be true since InputStreamReader ctor's take InputStreams and RandomAccessFile does not inherit from InputStream.
3. There is no OutputStreamReader class, only OutputStreamWriter. At least that's the only one I could find in the JDK 1.3 docs.
------------------
Jane
The cure for boredom is curiosity.
There is no cure for curiousity.
-- Dorothy Parker


Jane Griscti
SCJP, Co-author Mike Meyers' Java 2 Certification Passport
 
 
subject: jchq I/O question
 
Threads others viewed
Input Streams from Marcus????
constructors
Marcus Green #3 Question 33
Marcus's tutorial on I/O
Question on IO
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com