abstract 的 interface ,如何理解?

kerry_zeng 03-08-11

package javax.servlet;

// Imports
import java.io.IOException;

public abstract interface Servlet {

// Methods
void init(ServletConfig servletConfig) throws ServletException;
ServletConfig getServletConfig();
void service(ServletRequest servletRequest, ServletResponse servletResponse) throws ServletException, IOException;
String getServletInfo();
void destroy();
}

yehs220
2003-08-11 12:29

abstract可要可不要吧,就像interface中method前面的public一样。