Why Immediate and ultimate super class extends in one abstract class ?

What抯 a need to extents the two super class in single class public abstract class ProcessorServlet extends HttpServlet implements Servlet
[165 byte] By [meqa] at [2007-10-3 5:39:44]
# 1

> What抯 a need to extents the two super class in

> single class

>

> public abstract class ProcessorServlet extends

> HttpServlet implements Servlet

Only one class is being extended. HttpServlet.

Servlet is an interface.

You may only extend ONE class. You may implement as many interfaces as you like (there is probably some limit but not worth worrying about).

cotton.ma at 2007-7-14 23:47:28 > top of Java-index,Java Essentials,Java Programming...
# 2

What I means why ultimate interface and immediate super class implements and extends in same class. I.e. Servlet is interface it has

Init()

getServletConfig()

service()

getServletInfo()

destroy()

above all abstract methods all are implemented in HttpServlet. Why once again implements the interface in this class. We simply extend the HttpServlet class. What抯 the need?

meqa at 2007-7-14 23:47:28 > top of Java-index,Java Essentials,Java Programming...
# 3
Clarity.
cotton.ma at 2007-7-14 23:47:28 > top of Java-index,Java Essentials,Java Programming...