• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

Runtime Exceptions

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
The most frequent one should be enough
 
Cowgirl and Author
Posts: 1589
5
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Thanks!
Would InsufficientChocolateException be checked
or not!?!
Greg
 
Ranch Hand
Posts: 279
  • Mark post as helpful
  • send pies
  • 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 ]
 
If you believe you can tell me what to think, I believe I can tell you where to go. Go read this tiny ad!
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic