Chapter 18Java I/O Fundamentals
THE OCP EXAM TOPICS COVERED IN THIS PRACTICE TEST INCLUDE THE FOLLOWING:
- Java I/O Fundamentals
- Read and write data from the console
- Use BufferedReader, BufferedWriter, File, FileReader, FileWriter, FileInputStream, FileOutputStream, ObjectOutputStream, ObjectInputStream, and PrintWriter in the java.io package.
-
Fill in the blanks: Writer is__________ that related stream classes__________ .
- a concrete class, extend
- an abstract class, extend
- an interface, extend
- an interface, implement
-
Which of the following methods is defined in java.io.File?
- createDirectory()
- getLength()
- listFile()
- renameTo()
Get OCA / OCP Java SE 8 Programmer Practice Tests 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.