Apply Your Knowledge

Review Questions

1:What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy?
2:What is an I/O filter?
3:What is the purpose of the File class?
4:What interface must an object implement before it can be written to a stream as an object?
5:What is the difference between the File and RandomAccessFile classes?
6:Which class allows you to read objects directly from a stream?
7:What value does read() return when it has reached the end of a file?
8:What value does readLine() return when it has reached the end of a file?
9:How many bits are used to represent Unicode, ASCII, UTF-16, and UTF-8 characters?
10:What is your platform's default character encoding?

Exam Questions

1:Which of ...

Get Sun Certification Training Guide (310-025, 310-027): Java™ 2 Programmer and Developer Exams now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.