What is the result?
A.
Compilation fails
B.
6
C.
4
D.
1
E.
3
F.
Not possible to answer due to missing exhibit.
Explanation:
C: 4 Falls geändert zu: return FileVisitResult.CONTINUEsonst A: weil CONTINUE als Konstante
unbekannt
Note: TheFileSystems.getDefault() returns the default FileSystem. The default file system creates
objects thatprovide access to the file systems accessible to the Java virtual machine. The working
directory of the filesystem is the current user directory, named by the system property user.dir.
Answer is 4 because the matcher will work only on files directories will not be included.
Yes is 4 but it prints “Matched: 4” because of the System.out.print method