• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

checked exceptions

 
Ranch Hand
Posts: 4716
9
Scala Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
a few years ago i read that java was the first language to have checked exceptions. there was some controversy about if this was a good thing or a bad thing. personally i find it kind of an annoyance when i try to compile and it tells me i didn't catch some exception that never happens. that was years ago. what is the consensus now?
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't think much has changed since what you describe. There isn't a general consensus one way or the other about whether checked exceptions are generally good or bad.

Oracle's Java Tutorials even have a page about the issue: Unchecked Exceptions — The Controversy
 
Marshal
Posts: 79178
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Good to see you back.

I think you can make Exceptions checked in C++ depending on how you declare them, but I may be mistaken. If you search for Checked Exceptions: an experiment which failed, you will get a completely different opinion about the controversy.
 
reply
    Bookmark Topic Watch Topic
  • New Topic