In java we use try catch with exceptions in the try block. can we use this for throwables or can we create even throwables as implements serializers?

29 views Asked by At

Exceptions are extensions of throwables and throwables are defined as implementing serializers in the java packages so can we create throwables in and use try catch and reduce the severity of throwable as exceptions are more threatening. will this allow my code to run smoothly when the throwable is not handled but some communication shall be created between try block code and catch or finally block code.

sorry i do not have any code to share! it's a theoritical doubt as i'm still a beginner learning java.

0

There are 0 answers