User defined exception are checked or unchecked exceptions

前端 未结 5 2066
后悔当初
后悔当初 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:25

    It's a checked exception class. Any class which extends Exception class will be a user defined Checked exception class. Where as any class which extends RuntimeException will be Unchecked exception class.

提交回复
热议问题