Bo Xu at [EMAIL PROTECTED] wrote:
> "Rajeshwar Rao.V" wrote:
>
>> Hi all,
>> Why ServletContext is declared as absrtact?
>> What does it mean by abstract interface?
>> As I know , every interface is by default abstract...
>> Am i missing something...
>> -raj-
>> [...]
>
> Hi :-) I read the source code of ServletContext.java in
> jakarta-servletapi-4_0-b5.zip:
> http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0-b5/src/
>
> it is "public interface ServletContext {...}", I don't find
> "abstract", perhaps you use another version of
> Servlet API?
Java Language specification: An interface is ALWAYS all-abstract, all its
methods are abstract... :)
Class -> can be instantiated as none of its methods are abstract
Abstract Class -> cannot be instantiated as some of its methods are abstract
can be extended but not implemented
Interface -> can be instantiated as all of its methods are abstract
can be extended by another interface and implemented by a class
Pier
___________________________________________________________________________
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