Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

A system exception must be an unchecked exception?

 
vijay Mamilla
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A system exception must be an unchecked exception?
 
Ana Nava
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well it is a tricky option in an exam question. In EJB the system exception are not just "unchecked exception", but includes "RemoteException and its subclasses" (which are checked exception) as well.

If there was a question like "What is true about Exceptions in EJB" and there were following options like

a. application exceptions must be checked exceptions
b. system exceptions are unchecked exceptions.

I would select a and not b, because, system exceptions includes "RemoteException" as well.
 
vijay Mamilla
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ana
[ May 31, 2005: Message edited by: vj reddy ]
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!