Question 181
Given the code fragment:

What is the result?

What is the result?
Question 182

What is the result?
Question 183
Which statement is true about the single abstract method of the java.util.function.Function interface?
Question 184
Given the code fragment:
Stream<Path> files =
Files.walk(Paths.get(System.getProperty("user.home")));
files.forEach (fName -> {//line n1
try {
Path aPath = fName.toAbsolutePath();//line n2
System.out.println(fName + ":"
+ Files.readAttributes(aPath, Basic.File.Attributes.class).creationTime ());
} catch (IOException ex) {
ex.printStackTrace();
});
What is the result?
Stream<Path> files =
Files.walk(Paths.get(System.getProperty("user.home")));
files.forEach (fName -> {//line n1
try {
Path aPath = fName.toAbsolutePath();//line n2
System.out.println(fName + ":"
+ Files.readAttributes(aPath, Basic.File.Attributes.class).creationTime ());
} catch (IOException ex) {
ex.printStackTrace();
});
What is the result?
Question 185
Given:

From what threading problem does the program suffer?

From what threading problem does the program suffer?