• 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.
 
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!