Hi friends, am newbie to servlet. My interviewer asked why
used servlet in your application.
i used servlet for controller logic and business logic .
is it correct ?

Answer Posted / jitendra

yes correct.And the answer should also include that because
servlet has some methods that are inherited from super class
like...init,destroy and many more that are used to handle
the request.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how does JSP handle run-time exceptions?

664


When jsessionid is created?

676


What is the difference between portlet and servlet?

597


Why jsp is better than servlet?

615


Why is http protocol called as a stateless protocol?

614






What is the need of session tracking in web application?

662


What are some advantages of storing session state in cookies?

684


What is session tracking?

791


What are different Authentication options available in Servlets.

657


Write a command to get actual path of a servlet to the server?

629


Explains the differences between context.getrequestdispatcher() and request.getrequestdispatcher()?

627


Explain the servlet context.

689


What is servlet and its types?

647


What are the kinds of http requests?

689


How to notify an object in session when session is invalidated or timed-out?

714