Java SE IO
This exam is mainly focused on classes of the java.io package.
To pass this exam you will be required to understand:
- The distinctions between types of File.
- How to access those files.
- Reader/Writer and InputStream/OutputStream implementations and their usages.
- Bridging between Readers, Writers, InputStreams, and OutputStreams.
- Basic serialization.
- And finally, using ResourceBundles and Properties
Note: Examinees should be able to process all exceptional conditions thrown during operations in the constructors and methods tested in the following objectives.
This examination does not cover non-blocking IO in the java.nio package and its subpackages.
As per all examinations in this section, questions are sourced from Java 1.4 unless explicitly stated otherwise.
| Released | Beta | Frozen | ||
|---|---|---|---|---|
ResourceBundle and Properties
Property management
|
|
|||
Properties 1 questionDemonstrate proper usage of the following Properties methods:
Write code to correctly serialize/deserialize Properties instances with:
Display comprehension of both the format and the character escaping of a serialized Properties instance. |
9 | 23 | 13 | |
ResourceBundle 2 questionsDemonstrate comprehension of the hierarchical nature of resource bundles. Write code to get an instance of a resource bundle using the static methods:
Display correct access techniques using:
Be able to correctly identify which values will be returned, given a hierarchy and a specific locale, in typical i18n scenarios. |
8 | 1 | 12 | |
API'sUse of the various types of File, their creation and deletion. Managing the content of files using the various character and byte stream tools. |
|
|||
File & RandomAccessFile 2 questionsDisplay understanding of the File class. Write code to navigate the file system using:
Demonstrate the creation of file instances using:
Explain at what point a physical representation of the file is created. Demonstrate the usage of:
Also explain the differences between the files created using these two methods. Determine the current state of a File using the following methods:
Write code to delete files using:
Write code to create directory structures using:
Display understanding of the RandomAccessFile class. Write code to construct a RandomAccessFileInstance using:
Demonstrate correct usage of:
Use the RandomAccessFile to read and write data in a non-sequential order. |
19 | 154 | 18 | |
Bridges: InputStreamReader, OutputStreamWriter 2 questionsDemonstrate reading character streams by decoding from a byte stream using InputStreamReader as a decorator of an InputStream. Using:
Demonstrate encoding to byte streams from a character stream using OutputStreamWriter as a decorator of an Writer. using:
|
4 | 16 | 19 | |
Readers and Writers 3 questionsDisplay comprehension of the character based nature of Reader and Writer implementations. Write code to construct any of the following Reader implementations:
Be able to write code to:
Write code to construct any of the following Writer implementations:
Be able to write code to:
Finally, be able to identify which of the above Reader/Writer implementations to use in tightly defined circumstances. |
13 | 92 | 18 | |
InputStream and OutputStream 2 questionsDisplay comprehension of the byte based nature of InputStream and OutputStream implementations. Write code to construct any of the following InputStream implementations:
Demonstrate usage of these InputStreams by:
Write code to construct any of the following OutputStream implementations:
Demonstrate usage of both OutputStream types by:
Write code using ByteArrayInputStream and ByteArrayOutputStream to perform in-memory streaming of byte data. Be able to identify which of the above InputStream/OutputStream implementations to use in tightly defined circumstances. |
12 | 70 | 18 | |
Serialization 3 questionsDisplay understanding of serialization by developing code using both:
Indicate understanding of the concept of the Serializable interface being a marker interface, that requires no methods implementations. Display correct usage of the serialVersionUID member:
Demonstrate usage of the readResolve() method to protect singleton integrity. The following topics are excluded from this category's questions:
|
18 | 136 | 28 | |
Exam information
- 22 minutes
- 15 questions (701)
- 80% required
- +2 √
- - 8 points
- 15 day delay
- status: released



