1.

Why Is A Constructor Needed In A Servlet Even If We Use The Init Method?

Answer»

1.Although the INIT method of the servlet initializes it, a constructor instantiates it.
2.A developer might never explicitly CALL the servlet's constructor but a container USES it to create an INSTANCE of the servlet.

1.Although the init method of the servlet initializes it, a constructor instantiates it.
2.A developer might never explicitly call the servlet's constructor but a container uses it to create an instance of the servlet.



Discussion

No Comment Found