User defined exception are checked or unchecked exceptions

前端 未结 5 2067
后悔当初
后悔当初 2021-01-21 07:52

In my web application created a User defined exception extends with Exception.Is it Checked or unchecked exception

public class InvalidDataException extends Exc         


        
5条回答
  •  迷失自我
    2021-01-21 08:34

    User Defined exceptions are checked exceptions because they are extended with Exception class which is super class for all the exceptions occured,where as unchecked exceptions are extended with run time Exceptions.

提交回复
热议问题