Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Що відбувається, якщо findFirst() викликається на порожньому потоці?
findFirst()
Виникає NullPointerException
NullPointerException
Код не компілюється
Повертається Optional.empty()
Optional.empty()
Викидається NoSuchElementException
NoSuchElementException
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!