Note: These pages refer to the electronic version of this book.
P484 (and repeated further in chapter 9):
BasicFileAttributes, DosFileAttibutes, PosixAttributes and their respective view-classes are not classes but are interfaces.
P497 Question 3
One must assume import statements are correct when the code does not explicitly start from line 1.
This question does start from line 1, thus it's lacking the necessary import statements.
This code will not compile starting at line 1 instead of line 4 (answer at page 568).
Thank you once more for this amazing book, I couldn't have passed this exam so quickly if it weren't for you guys.