Java Tutorials: Episode 8 - Errors and Exceptions

preview_player
Показать описание
Eighth episode of my programming series dedicated to teaching you Java! This episode covers Errors, Exceptions, Runtime Exceptions, and the differences between them. We also learn how to catch and handle these errors, and even how to create and throw our own! Please enjoy, subscribe, like, and favorite if you enjoyed the lesson. And always, leave a comment and tell me how you feel.
Рекомендации по теме
Комментарии
Автор

Looks like the compiler will not force you declare a throws clause for the and NullPointerException because they inherit from java.lang.RuntimeException.   The java.lang.RuntimeException is an unchecked exception.

JamesJt
Автор

What's the point of finally{}? Surely if there's going to be code that runs no matter what happens, you could just add some standard code right after the try and catch block? Is there some kind of difference I'm missing?

ABanimationLtd
visit shbcf.ru