IT Q&A Online Community

java         core java        
Your Answer: 

1 Answers

While creating your own exception −

  • All exceptions must be a child of Throwable.

  • If you want to write a checked exception that is automatically enforced by the Handle or Declare Rule, you need to extend the Exception class.

  • You want to write a runtime exception, you need to extend the RuntimeException class.

Answered:08 Nov at 08:27
    
Edit Account
LOGIN INFORMATION
Change Settings
Email Notifications Notifications will be sent to abcd@gmail.com
Select option for your email notifications:
Mature / News Filter We'll send on email when new jobs are posted
Option 2 for email notification We'll send on email when new jobs are posted