This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
Originally posted by Gagan Indus: So , suppose i subclass GenericServlet , and in some method of this subclass i call some method of ServletConfig , say i call getSevletContext() . In this case " Do GenericServlet class have some of its own implementation of getServletContext() , or does it internally calls the same method upon ServletConfig passed in init() ? " ( as reference to original ServletConfig passed in init() is stored )
[This message has been edited by Tim Duncan (edited October 19, 2001).]
Joined: Feb 28, 2001
Thankx Stephane and Tim ! Stephane , so was it to make servlet developers life lill 'easy' ? I knw we all extend HttpServlet , but it IS-A GenericServlet , which further IS-A Servlet-Config , which effectively implies HttpServlet IS-A Servlet-Config . So sometimes to make life easier , we have to relax OOPs-thinga lill Yes Tim i got da perfect ans to second q , by looking at source code . thankx ------------------ Gagan (/^_^\) SCJP2 Die-hard JavaMonk -- little Java a day , keeps u going .