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

Tell us something about servletconfig interface.

578


What is the difference between 2 types of servlets?

642


Whether we can get deadlock situation in servlets?

572


Why do we need servlet filter?

563


What is called Session Tracking?

596






What are the different session tracking techniques?

672


Can we use the constructor, instead of init(), to initialize servlet?

580


Can we get PrintWriter and ServletOutputStream both in a servlet?

656


What is the procedure of invoking different servlet in a different application?

555


When servlet is loaded?

589


How is an application exception handling is done using a servlet?

538


Why the container loads server at the application startup and how?

579


How do cookies work in servlets?

579


What is servlet collaboration?

659


What is the difference between forward () and sendredirect () functions in servlet? Explain

543