Hi all,
I was browsing the
Servlet API and i came across the Servlet interface.
There are many functions under the Servlet interface.Some of which are as follows
java.lang.String getServletInfo()
void init(ServletConfig config)
void service(ServletRequest req, ServletResponse res)
Each of these functions have different purposes,Some even return values.
An interface has no method implementations in it.
My Question is:
How can an Interface like Servlet have methods that return value without any implementations in them?Please do reply. Thank you in advane