Servlets Interview Questions
Questions Answers Views Company eMail

Why is a constructor needed in a servlet even if we use the init method?

598

Explain servlet.

558

Define the lifecycle for executing a jsp page.

584

Differentiate between get and post?

675

What are the steps that are involved in using the httpservlet class?

565

Tell us something about servletcontext interface.

616

How to generate the server side programming and the advantages of it over the other languages?

552

How can a servlet be used to generate plain text instead of html?

537

How can we implement a jsp page?

621

What are the ways to handle multi-threading in servlets?

585

How would you create deadlock on your servlet?

614

What is the requirement of servlet config and servlet context implemented and how are they implemented?

532

Define the life cycle of a servlets.

562

What are the different methods involved in generic servlet?

549

What is the difference between the servlets and cgi programs?

541


Post New Servlets Questions

Un-Answered Questions { Servlets }

what is multiple server?

1751


Why doesn’t a servlet include main()?

552


How to get the current httpsession object?

644


What is URL Encoding?

611


Write a hello world program using servlets.

580






How do servlets work?

528


What is java servlet?

602


How to find whether a parameter exists in the request object?

655


How do I know if java is running on linux?

596


What is servlet name in web xml?

543


What is the use of welcome-file-list?

565


Explain the role of dispatcherservlet and contextloaderlistener.

593


How servlets are deployed in java?

539


What exception should be thrown when servlet is not properly initialized?

549


What are the different session tracking techniques?

665