Chapter 19Java File I/O (NIO.2)

THE OCP EXAM TOPICS COVERED IN THIS PRACTICE TEST INCLUDE THE FOLLOWING:

  • Java File I/O (NIO.2)
    • Use Path interface to operate on file and directory paths
    • Use Files class to check, read, delete, copy, move, manage metadata of a file or directory
    • Use Stream API with NIO.2
  1. Fill in the blanks: A(n)__________ is a file that contains a reference to another file or directory, while a(n)__________ is a file that contains content.

    1. irregular file, regular file
    2. regular file, opaque file
    3. symbolic link, regular file
    4. symbolic link, symbolic directory
  2. Which methods listed below are found in the NIO.2 Path interface? ...

Get OCA / OCP Java SE 8 Programmer Practice Tests now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.