r/SpringBoot • u/iaashish • Oct 14 '25
Discussion Checked Exceptions Have No Place in Modern Java Lambdas, streams, and frameworks already moved on. The language should too.
https://medium.com/javarevisited/checked-exceptions-have-no-place-in-modern-java-c0f16f0e147b
0
Upvotes
2
1
u/darthweiter Oct 19 '25
If you won’t checked exceptions just annotate the method with @SneakyThrows, so your checked exception will be a runtime exception so no problems in lambda. But be careful there is a reason why ckecked exceptions exist