Quiz
It is possible to employ multiple computer cores to filter a list. Which statement will filter with increased performance? books.parallelStream().filter(book - > { return book.getTitle().startsWith("E"); }).forEach(System.out::println); Correct books.pStream().filter(book - > { return book.getTitle().startsWith("E"); }).forEach(System.out::println); books.streamParallel().filter(book - > { return book.getTitle().startsWith("E"); }).forEach(System.out::println); books.streamp().filter(book - > { return book.getTitle().startsWith("E"); }).forEach(System.out::println); ****************************************************************************************************** Which statement is equivalent to the following code? GreetingMessage gm = new GreetingMessage() { @Override public void greet(String name) { System.out.println("Hello " + name); ...