I'm trying to understand How Java interfaces implementation are used vendors,while Working with Servlet,When i write my Servlet i just extend HttpServlet which is subclass of GenericServlet that implement Servlet Interface?
I have this below questions
1)I Don't understand why i have extend to HttpServlet, How My servlet is getting intialized.
2)How webserver is able to create servlet instances.
3)How my servlet is getting loaded into the servlet container memory?,what is mechanism that Vendor use to call my servlet and what is the HttpServletInterface Role in all this.
4)Though i never do anything with service(),how this method is getting called.How service() is getting executed.
5)how webserver vendor uses interface and Java API to make servlet working.