O'Reilly logo
  • Sahil Parekh thinks this is interesting:

The Path.getPath() method used throughout the previous examples is actually shorthand for the class java.nio.file.FileSystem method getPath(). The FileSystem class has a protected constructor, so we use the plural FileSystems factory class to obtain an instance of FileSystem, as shown in the following example code:


Cover of OCP Oracle® Certified Professional Java® SE 8 Programmer II


Path.getPath() is actually Paths.get()