Given the information: The employee table has 10 records.
Given the code fragment:
What is the result?
Which statement is true about the single abstract method of the java.util.function.Predicate interface?
The data.doc, data.txt and data.xml files are accessible and contain text.
Given the code fragment:
Stream
Paths. get(“data.txt”),
Paths. get(“data.xml”));
paths.filter(s-> s.toString().endWith(“txt”)).forEach(
s -> {
try {
Files.readAllLines(s)
.stream()
.forEach(System.out::println); //line n1
} catch (IOException e) {
System.out.println(“Exception”);
}
}
);
What is the result?
Given the code fragment:
What is the result?