What is the difference between Checked and Unchecked Exception? - ProProfs Discuss
Advertisement

What is the difference between Checked and Unchecked Exception?

Asked by C. OWENS, Last updated: Mar 27, 2024

+ Answer
Request
Question menu
Vote up Vote down

1 Answer

E.Evelyn

E.Evelyn

E.Evelyn
E.Evelyn

Answered Mar 03, 2020

The fundamental difference between checked and unchecked exceptions is that the compiler checks checked exceptions. On the other hand, the compiler does not check unchecked exceptions. Another difference is that checked exceptions need to be unequivocally caught or replicated. Unchecked expectations do not have this parameter.

They don't have to be decreed thrown or caught. A checked exception is a subclass of exception and illustrates a function that generally reflects errors in a program's logic. It aims to allow for the smooth execution of the program at run time. If you don't handle the checked exception, then the compiler objects.

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.