r/learnjava • u/Isaac_Istomin • Apr 28 '26
What do beginners usually misunderstand about exceptions in Java?
I’ve noticed a lot of newer Java developers either catch everything, or almost treat exceptions like they are just annoying syntax.
What do you think beginners usually get wrong here? Is it checked vs unchecked, where to handle them, or just understanding what should be logged vs rethrown?
30
Upvotes
View all comments
3
u/demchaav Apr 28 '26
The top 3 things beginners get wrong about exceptions, ranked by how much I regretted doing them in production:
The real mental shift: think of exceptions as fire alarms, not as regular room notifications. You don't set off the fire alarm every time someone opens a window.