Получи случайную криптовалюту за регистрацию!

What happens if we call get() on an empty optional? Anonymou | Java задачи • Mentor

What happens if we call get() on an empty optional?
Anonymous Quiz
38%
NullPointerException
35%
NoSuchElementException will be thrown
20%
Nothing
6%
Answer