Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
What is the purpose of the FileOutputStream class?
Think about whether data is coming in or going out.
Name one exception related to file handling in Java.
Consider the common issues when accessing files.
What does FileInputStream do?
Focus on the naming of the class.
True or False: RandomAccessFile can only be used in a sequential manner.
Consider what 'random access' implies.
Create a Java program that uses FileOutputStream to write a list of numbers to a file, then reads those numbers back using FileInputStream.
Remember data types and ensure to convert if necessary.
Write a program using RandomAccessFile to modify a specific byte in a file. Demonstrate how to seek to that position.
Consider how to calculate the position based on the byte index.
5 more questions in this section. Enroll free to practise them all.
Enroll free