Город МОСКОВСКИЙ
00:13:41

Nested try catch block in Java – Exception handling

Аватар
PHP-практикум для веб-разработчиков
Просмотры:
62
Дата загрузки:
30.11.2023 18:53
Длительность:
00:13:41
Категория:
Обучение

Описание

Nested try catch block in Java – Exception handling
When a try catch block is present in another try block then it is called the nested try catch block. Each time a try block does not have a catch handler for a particular exception, then the catch blocks of parent try block are inspected for that exception, if match is found that that catch block executes.
If neither catch block nor parent catch block handles exception then the system generated message would be shown for the exception, similar to what we see when we don't handle exception.
https://noidatut.com/oops-using-java/nested-try-catch.php

Рекомендуемые видео