-
Junior Member
Why do some methods throw exceptions
Why do some methods throw exceptions and how the calling method handles those exceptions?
If the checked exceptions are thrown then what would happen?
Also if unchecked exceptions are thrown then what would happen?
How do i know my method can throw exception and i should include throws statement. Should i use throws Exception clause to each method?
Also please give me the real world example of throwing exception.
Please explain me in detail the concept of throwing exceptions using example.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules