Feeling confused about the access modifier of the doGet(...), doPost(...) and other methods of HttpServlet class.
How come it is
protected instead of
public?
Please take a look at the following
Servlet:
As per my understanding, "protected" modifier of doGet() means that a client has to be in the same package (or a child - through inheritance) to access doGet(). So how will the invoking
JSP or the Container access it?
Hope my question makes sense.