The simple answer is that Java supports polymorphism. This allows you to hide an
object's true type behind a superclass. Or, in this case, an interface.
> Kenia Nimesh wrote:
>
> in the function
>
> public void doPost(HttpServletRequest req,HttpServletResponse res)
> throws .....
> {
>
> }
>
> Interfaces can't be instantiated.
> HttpServletRequest and HttpServletResponse are both interfaces ....Right!
> So how can we pass an object of these interfaces to the doPost method??
>
> Also that HttpServletRequest extends ServletRequest . Since both of these are
>interfaces they have abstract methods which are just declared ..So where are all the
> methods like getParameter(), getMethod() defined???
>
> Please help me to solve this basic problem
>
> Nimesh
>
>
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html