Which statement can a developer use to throw the custom exception in - ProProfs Discuss
Advertisement

Which statement can a developer use to throw the custom exception in the following scenario?

Which statement can a developer use to throw the custom exception in the following scenario?

Change Image    Delete

A custom exception named “RecordNotFoundException” is defined by the following code block Public class RecordNotFoundException extends Exception {}.

Asked by Kevindotcar, Last updated: Nov 20, 2024

+ Answer
Request
Question menu
Vote up Vote down

1 Answer

John Smith

John Smith

John Smith
John Smith

Answered Jan 27, 2017

Throw new RecordNotFoundException(‘Problem Occured’);
Throw new RecordNotFoundException;
upvote downvote
Reply 

Advertisement
Advertisement
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader

Email Sent
We have sent an email to your address "" with instructions to reset your password.