1Z0-830 Web TestEngine demo

Exit VCEDump 1Z0-830 Java SE 21 Developer Professional
Question 2 of 15
0% complete
Q2 Single choice

Given:

java

List<Long> cannesFestivalfeatureFilms = LongStream.range(1, 1945)

.boxed()

.toList();

try (var executor = Executors.newVirtualThreadPerTaskExecutor()) {

cannesFestivalfeatureFilms.stream()

.limit(25)

.forEach(film -> executor.submit(() -> {

System.out.println(film);

}));

}

What is printed?

Sign in to mark questions

Sign in to save marked questions and return to this demo.

Sign in