Click here to Skip to main content
15,888,259 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
why unchecked exception can be undeclared in java ? But for checked exceptions you have to declare the type. i know unchecked exception happen at runtime but how that let's you to have a choice to declare or undeclared the class type

What I have tried:

Can someone explain it to me
In logical way
Posted
Updated 16-Jul-20 22:16pm
Comments
OriginalGriff 17-Jul-20 1:56am    
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind - we only get exactly what you type to work with. And what we have so far doesn;t make a lot of sense.
Perhaps if you give us sample code or pseudocode to explain what you are trying to do that might help us understand?
Use the "Improve question" widget to edit your question and provide better information.

1 solution

You cannot normally recover from Unchecked Exceptions so it is difficult for the programmer to anticipate them at code creation time. See Unchecked Exceptions — The Controversy (The Java™ Tutorials > Essential Classes > Exceptions)[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900