• 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

Runtime Exceptions

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I was running through Dan's Mock Exams, and am curious to know if memorization of all RuntimeExceptions is required for the (1.4) exam?
Thanks for having this valuable resource available to us, Dan!
Greg
 
Ranch Hand
Posts: 223
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The most frequent one should be enough
 
Cowgirl and Author
Posts: 1589
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I would be familiar with the common runtime exceptions including:
NullPointerException
ArrayIndexOutOfBoundsException
NumberFormatException
ArithmeticException
You also should understand the exceptions that can be thrown in thread-related scenarios -- both the checked exception (InterruptedException) and the runtime exceptions associated with locks. Like, what happens when you issue a wait() call when you do not own the object (on whom you are calling wait()) lock? Is this a compiler error or a runtime exception
Cheers,
Kathy
throws InsufficientChocolateException
 
Greg Windwall
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks!
Would InsufficientChocolateException be checked
or not!?!
Greg
 
Ranch Hand
Posts: 279
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Greg, such exceptions at worktime should not be checked, it should be handled
[ December 16, 2002: Message edited by: Alfred Kemety ]
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic