Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library

Comment by MRtecno98

16 days ago

Because java is garbage-collected and doesn't have any of the problems of C++ exceptions, so checked exceptions just become a nuisance of having to try/catch everything.

3 comments

MRtecno98

Reply

lateforwork  16 days ago

You don't have to try/catch everything.

  • pasc1878  15 days ago

    You do have to catch checked exceptions and that is the issue under debate.

    • lateforwork  13 days ago

      No, you can just declare that the exception in the throws clause.

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities