What is the result?

View the exhibit:

Given the code fragment:

What is the result?

View the exhibit:

Given the code fragment:

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.



Leave a Reply 2

Your email address will not be published. Required fields are marked *


BKhateib

BKhateib

Answer is 4 because the matcher will work only on files directories will not be included.

jalex

jalex

Yes is 4 but it prints “Matched: 4” because of the System.out.print method