File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Question on IO Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Question on IO" Watch "Question on IO" New topic

Question on IO

Milind Mahajan
Ranch Hand

Joined: Oct 23, 2000
Posts: 77

I have a doubt on IO. The following is question from Marcus Green tutorial. I think the answer is wrong. Please let me know.

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
Answer says all of them are true.
Mary Chaddi

Joined: Nov 01, 2000
Posts: 7
1 is probably true but is a very vague statement.
2 Is false. I did not see any such constructor in the InputStream reader class
3. There is no such thing OutputStreamReader . at least not in the JFC. Must be something out of a private library cooked up
by brother Marcus.
4. Java uses the 16 bit Unicode character representation internally. But what the heck is an escape string.

I think brother Marcus needs a major overhaul. Or are you trying to be funny brother Milind?
Mary Chaddi

[This message has been edited by Ajith Kallambella (edited November 06, 2000).]
Milind Mahajan
Ranch Hand

Joined: Oct 23, 2000
Posts: 77
Thanks for the response Mary Chuddy.
I agree. Here's the link:
subject: Question on IO
It's not a secret anymore!