Java Exception Handling - 5 Best Practices That You Should Know!
Vložit
- čas přidán 6. 08. 2024
- When building applications in Java, handling exceptions correctly requires some level of knowledge around the way we should use the tools provided by Java.
This video addresses the most common mistakes developers make when handling exceptions, but also some tips and tricks on how to avoid them. I really hope this video will help you to create better, more robust applications.
Let me know in the comments below if you found that video useful!
Chapters:
00:25 - Always Close Resources
04:39 - Catch Specific Exceptions
05:33 - Don't catch throwable
06:35 - Don't swallow exceptions
07:22 - Throw early, catch late - Věda a technologie
Short and very helpful. Please continue making such videos. We are waiting
Thank you, I will
Superb explanation!
Clear and concise 👍🏼
Thank you! Stay tuned!
really helpful . very clear and nicely explained
Thanks a lot Ramesh! Stay tuned for more content!
Keep going to make great videos like this,Thanks !!
Thank you so much! Stay tuned for more content!
Great video, very well explained, honestly it should've got more views
Thank you so much! Stay tuned for more videos!
It’s always the lowkey channels that have the best depth, way better than the cookie cutter API videos that flood CZcams.
It was really helpful.:)
Thank you so much! Stay tuned for more content!
Can you please make detailed video series on generic,oops and concurrency, multi threaded
Thanks for your ideas, they will definitely be considered for the next videos!
Thanks . Subscribed!!!
Awesome, thank you!
Thanks! this is very helpful. Can you cover Mockito in detail?
Thank you! Sure, great idea, noted! Stay tuned!
Well explained 👏🏻👏🏻
Thank you! Stay tuned for more content
thank you infinitely ☺️
Thank you! Stay tuned for upcoming videos!
Thank you, well explained. So +1 like and +1 subcribe
Thank you! Stay tuned for upcoming videos!
Best video
Thank you!
4:18 strictly speaking, it has to implement AutoCloseable, not the Closeable interface.
You're right! Thanks for catching this!
Point 1 is completely irrelevant in java 7+ as you can use try with resource. You only have to worry about the catch then!
Thanks for your comment! Indeed, the best practice is to use try with resources whenever you can, the only problem is when you deal with classes that don't implement Closeable