Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7701267
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T22:56:36+00:00 2026-05-31T22:56:36+00:00

As far as I understand, if you only declare a checked exception it will

  • 0

As far as I understand, if you only declare a checked exception it will propagate through all your methods down to the main method and still interrupt your normal program flow and your program will still stop working. So, why not always handle checked exceptions with try/catch…so that way your program does not stop due to an exception? Why bother declaring an exception in the method’s signature? Sorry for my bad English

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T22:56:38+00:00Added an answer on May 31, 2026 at 10:56 pm

    As far as I understand, if you only declare a checked exception it will propagate through all your methods down to the main method and still interrupt your normal program flow and your program will still stop working.

    Absolutely. And that’s a good thing if something’s happened that you really can’t handle.

    For example, suppose you’ve got a program which is going to update your database with some data in a file – but you fail to load the file.

    You could just catch the exception, ignore it and still overwrite the data in your database… but that would not be a good thing. As soon as you’re in a situation you weren’t prepared for, or you fundamentally can’t continue sensibly, then stopping is the responsible thing to do.

    Sure, if you can genuinely handle the exception and keep going, that’s great – but in my experience, there are relatively few errors where that’s the case. If you’re writing a server-side application you typically want to abort the request (and give an error to the client). If you’re writing a UI then you may want to just abandon the current operation, notify the user and let them keep going… it’s a slightly different situation there.

    But unconditionally catching all exceptions and pretending they didn’t happen? <shudder>

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

As far as I understand hadoop architecture considers all machines to be equal with
Where is megabytes method for fixnums defined? As far as I understand, its not
As far as I understand, this code grabs only the first shape in the
As far as I understand from app engine tutorial, entity groups exist only for
As far as I understand the only thing LINQ supports, which Scala currently doesn't
As far as I understand all sniffing libraries in .NET just a wrapper around
Mock has a helpful assert_called_with() method . However, as far as I understand this
as far as I understand APN's I can only send them to the app
As far as I understand, if I want to get my database under source
As far as I understand, binding to a var in ActionScript is carried out

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.