1Z0-829 • Practice Test 15
Free 1Z0-829 practice test — 15 questions with explanations. Set 15. No signup required.
A stream pipeline filters strings, sorts them, and returns the first match: .filter(s -> s.length() > 3).sorted().findFirst(). This is inefficient because sorted() processes all elements. Which alternative achieves the same result with better performance?