• 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 vs Unchecked exceptions

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
Thanks for reading this post and helping in answering my question(s):

I have completed the chapter on exceptions and doing some of the roundup questions and the self test in K&B.
Some of the questions require you to know which excpetions under the Exception class are checked vs unchecked exceptions (RuntimeException).
Q: How much of this information we need to know for the exam?

Q: Should I review the class tree under Exception and familiarize myself with it (memorize some )

Thanks for your help
 
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In theory: all of it.
In reality: you'll rarely need to know. Some exceptions you do need to know are listed in the book I think.
 
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Some of the important exceptions are

Checked Exceptions are :
InterruptedException
java.io.IOException

Unchecked exceptions include:
NumberFormatException
ArithmeticException (integer divide by zero)
NullPointerException
IllegalThreadStateException
IllegalArgumentException
ClassCastException
ArrayIndexOutOfBoundsException
 
I've been selected to go to the moon! All thanks to this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic