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

Wil a servlet Compile when no ServletException is thrown?

 
Remko Strating
Ranch Hand
Posts: 893
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would think that is servlet will not compile because it doesn't throw a ServletException.

In enthuware QID=1074483091250 it's stated that this code will compile.

What is true?

 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Relapsing to SCJP.

Why would a subclass have to declare a checked exception from the overridden parent?
 
Remko Strating
Ranch Hand
Posts: 893
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, I understand this one.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic