Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet Initialization

 
santhoshkumar samala
Ranch Hand
Posts: 156
Eclipse IDE Hibernate Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The following question is taken from Jpilot exam

During initialization the servlet instance can throw which exception.

A.ServletNotAvailableException

B.ServletException

C.UnavailableException

D.UnableToInitializeException



My answer is B, but the answer given in is C. please explian why the answer is C?
 
Doyle Matt
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes you're right. The answer is B. To be more precise the answer can be B or C. Since UnavailableException is a subclass of ServletException. Try checking the API.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic