Exception is an error event that can happen during the execution of a program and disrupts its normal flow. Java provides a robust and object oriented way to handle exception scenarios, known as Java Exception Handling.
built-in exceptions in Java.
ArithmeticException. It is thrown when an exceptional condition has occurred in an arithmetic operation
ArrayIndexOutOfBoundsException
ClassNotFoundException
FileNotFoundException
IOException
InterruptedException
NoSuchFieldException
NoSuchMethodException
1) Checked: are the exceptions that are checked at compile time. If some code within a method throws a checked exception, then the method must either handle the exception or it must specify the exception using throws keyword.
2) Unchecked are the exceptions that are not checked at compiled time
Please subscribe the channel and visit to www.ananyatech.net & write at [email protected] for more details.
Facebook page: / ananyasoftwaretechnologies
Смотрите видео How To Exception In Java & Exception Handling (Check & Un-checked Exception & Error) онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь IT Corporate Training 15 Февраль 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 33 раз и оно понравилось людям.