There are no technical limitations. they could create functional interfaces that declare checked exceptions in their contract just as they did with Callable. the only reason they do not do that it's because they DO NOT WANT to pollute the JDK with them, and all the refactor required in the API to get make use of these new functional interfaces.
Plus, it wouldn't solve the problem. Being forced to write a try-catch when you aren't using functions that actually throw anything would be a worse situation than we have now.
View all comments
Show parent comment
2
u/davidalayachew Oct 05 '25
Plus, it wouldn't solve the problem. Being forced to write a try-catch when you aren't using functions that actually throw anything would be a worse situation than we have now.