Because doGet() is called by the service() method.and service method.And they both are in the same package.So the doGet method is protected. Suppose we don't want to give access of doGet() outside package then we used the doGet as protected. Suppose its declaration is with public then we can't make it as protected at the time of override. Thanks | 0 |
By: [email protected] On: Mon Aug 29 20:22:43 IST 2016 0 0 0 | 0 |
Are You Satisfied :0Yes0No |