Towards Better Checked Exceptions — Inside Java Newscast #107



Подписывайся на наши соц сети:
https://vk.com/javatutorial
https://t.me/javalib
https://max.ru/javalib

Java’s checked exceptions are both an integral part of the language and one of its most contested features. Whether their introduction was a mistake and whether they should all be turned unchecked are frequently discussed topics but since the former is not overly relevant and the latter unlikely, this conversation isn’t moving Java forward. Instead, let’s talk about specific issues with checked exceptions and what could be done about them — from (entirely speculative) language changes to (marginally realistic) JDK/library evolution to stylistic changes.

JEP draft for Exception Handling in switch: https://openjdk.org/jeps/8323658
Two tutorials for `Either`:
https://medium.com/@samuelavike/either-monads-in-java-elegant-error-handling-for-the-modern-developer-423bbf7300e6
jherrlin.github.io/posts/error-handling-with-either/

0:00 Intro
1:49 Inherited Checkedness
3:13 Too Many Checked Exceptions
5:39 Catching Unthrown Exceptions
6:49 Functional Error Handling and Deferred Computation
10:51 Stylistic Changes

Похожие видео

© 2026 MICLIP.RU