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 type of stream is best suited for reading binary data?
Think of raw data.
Name a class used for writing character data.
It starts with 'F'.
Which class is used to read bytes from a file?
Focus on the class that deals with bytes.
True or False: Character streams are better suited for binary data.
Think about the types of data.
Create a small program that reads a file using BufferedInputStream, counts how many bytes are read, and displays the count.
Focus on looping through the byte stream to count instead of reading into an array.
Write a method that takes a filename as input, uses PrintWriter to append a line of text to the file, and handles exceptions.
Make sure to open the FileWriter in append mode.
5 more questions in this section. Enroll free to practise them all.
Enroll free