Servlets Interview Questions
Questions Answers Views Company eMail

How do we translate jsp?

563

Explain mvc pattern.

586

What is the difference between context parameter and context attribute?

527

What are the life cycle methods of a servlet?

585

What is the difference between a generic servlet and http servlet?

516

Which exception is thrown if the servlet is not initialized properly?

582

What do you mean by mime type?

546

Explain is servlet mapping?

572

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

519

What is the use of httpservletresponsewrapper?

524

How can you use a servlet to generate a plain text instead of html?

581

What is the servletconfig object?

522

How can you create a session in servlet?

585

Explain jsessionid?

611

Explain the steps involved in placing a servlet within a package?

558


Post New Servlets Questions

Un-Answered Questions { Servlets }

What are the jobs performed by servlets?

579


How do servlets work?

530


How do you define a servlet?

521


Explain the war file?

606


What is the inter-servlet communication?

692






When is the servlet instance created in the life cycle of servlet? What is the importance of configuring a servlet?

572


Where do you define dispatcherservlet?

550


Which interface should be implemented by all servlets?

694


What is meant by session? Tell me something about httpsession class?

594


What is the difference between jsp and servlet life cycle?

681


What do you mean by singlethreadmodel interface?

576


Is it possible to have a constructor inside the servlet?

550


Given the request path below, which are context path, servlet path and path info?

539


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

553


What is context in servlet?

533