can v create a constructor 4 servlet?

Answer Posted / ravindra nhavi

yes we can create constructor of servlet instead of init
method but i dont get servlet specification answers.

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you create a cookie using servlet?

575


A client sends requests to two different web components. Both of the components access the session. Will they end up using the same session object or different session ?

601


Why are http servlets used in programming?

542


What is servletconfig?

543


What is new in ServletRequest interface ? (Servlet 2.4)

568






What is Servlets and explain the advantages of Servlet life cycle?

579


What do you mean by cgi and what are its drawbacks?

522


What are all the advantages of servlet over cgi?

598


What is servlet and how it works?

500


What are the type of protocols used in httpservlet?

608


Explain the difference between servletconfig and servletcontext in servlet?

563


How can we refresh automatically when new data has entered the database?

614


What is the default http method in the servlet?

752


What are the types of an http request?

577


What is Request Dispatcher?

791