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
How does java thread pool work?
Why do we have servlet wrapper classes?
How to commuincate between an applet and a servlet?
What is called servlet container?
What is session?
What is servlet api used for conneting database?
Can we use threads in Servlets?
What do you understand by mime type?
What is the difference between Servlets and Applets?
When is the servlet instance created in the life cycle of servlet? What is the importance of configuring a servlet?
Why servlet is faster than jsp?
What is the difference between the getrequestdispatcher(string path) method of javax.servlet.servletrequest interface and javax.servlet.servletcontext interface?
Define context initialization parameters.
What is the major difference between context parameter and context attribute?
Is it good idea to create servlet constructor?