java servet life cycle of servlet java interview question interviewdot

751 views · Published 30 September 2013 · 2:00 · Indexed 12 November 2026

Channel: Interview DOT · 2013 · Science & Technology

Watch on YouTube

Click here - https://www.youtube.com/channel/UCd0U_xlQxdZynq09knDszXA?sub_confirmation=1 to get notifications. java servet life cycle of servlet java interview question interviewdot
What is servlet ?
Servlets are modules that extend request/response-oriented servers, such as java-enabled web servers. For example, a servlet might be responsible for taking data in an HTML order-entry form and applying the business logic used to update a company's order database.
What is the life cycle of a servlet ?

Each Servlet has the same life cycle: 
A server loads and initializes the servlet by init () method. 
The servlet handles zero or more client's requests through service() method. 
 The server removes the servlet through destroy() method.

Who is loading the init() method of servlet ?
 Web server

What is the difference between an applet and a servlet ?
Servlets are to servers what applets are to browsers. 
Applets must have graphical user interfaces whereas servlets have no graphical user interfaces.

A Job Portal
http://www.InterviewDot.com http://www.InterviewDot.com http://www.InterviewDot.com
One Click Dream Job - http://www.interviewdot.com/upload-resume/uploadresume.htm

Other Top Job Portals
www.Naukri.com
www.MonsterIndia.com
www.TimesJobs.com

Are you looking for a new Job ?
InterviewDot.com - A Job Portal
http://www.InterviewDot.com http://www.InterviewDot.com http://www.InterviewDot.com
One Click Dream Job - http://www.interviewdot.com/upload-resume/uploadresume.htm

More from this channel