Interviewer And Interviewee Guide

Sr.Java Web Developer Interview Question:

Do you know how to create a custom Exception?

Submitted by: Muhammad
To create you own exception extend the Exception class or any of its subclasses.

☛ class New1Exception extends Exception { } // this will create Checked Exception
☛ class NewException extends IOException { } // this will create Checked exception
☛ class NewException extends NullPonterExcpetion { } // this will create UnChecked exception
Submitted by: Muhammad

Read Online Sr.Java Web Developer Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.