Servlets Interview Questions
Questions Answers Views Company eMail

Write all the phases defined in servlet life cycle?

588

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

579

Which http method is said to be non-idempotent and idempotent?

604

What is the use of request dispatcher interface?

567

Write the code to get the server information in servlet.

567

what do you understand by url rewriting?

546

What is the purpose of inter-servlet communication?

589

What are different ways for authentication of servlet?

525

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

539

Describe some assignments that are executed by servlet container?

579

Which httpsession object is used to view and manipulate information about a session?

727

What do you understand by mime type?

558

Explain url encoding?

519

What are the benefits of using servlet over cgi?

572

What is the need of servlet filters?

538


Post New Servlets Questions

Un-Answered Questions { Servlets }

What are different ways for servlet authentication?

561


Is servlet a controller?

573


How can we invoke another servlet in a different application?

704


What is the difference between the include() and forward() methods?

567


What is URL Encoding?

617






What is difference between server and servlet?

575


Which interface should be implemented by all servlets?

696


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

517


Who is responsible to create the object of servlet?

716


What are the advantages of cookies?

629


What are different Authentication options available in Servlets.

563


Why session tracking is needed?

582


What is the use of servlet context?

527


What is the importance of init() method in Servlet ?

590


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

574