InterviewSolution
| 1. |
What Is Parallel Processing In Java 8? |
|
Answer» parallelStream is the alternative of STREAM for parallel processing. Take a look at the FOLLOWING CODE SEGMENT that prints a count of empty strings using parallelStream. List<String> strings = Arrays.asList("abc", "", "bc", "efg", "abcd","", "jkl"); parallelStream is the alternative of stream for parallel processing. Take a look at the following code segment that prints a count of empty strings using parallelStream. List<String> strings = Arrays.asList("abc", "", "bc", "efg", "abcd","", "jkl"); |
|