Page 1 of 1

About Question enthuware.jwpv6.2.1074 :

Posted: Sun Jul 29, 2012 1:45 am
by VimalKumar
In the exhibit,
1. doPost() of LoginServlet does not declare to throw IOException() and ServletException().
2. Similarly, doPost() of ReportServlet does not declare to throw ServletException().

So both of the servlets would fail to compile, right?

correct me if am wrong.

Re: About Question enthuware.jwpv6.2.1074 :

Posted: Mon Jul 30, 2012 10:41 am
by admin
No, an overriding method is free not to declare any exception declared in the overridden method.

HTH,
Paul.