Servlets Interview Questions
Questions Answers Views Company eMail

When servlet object is created?

604

What is servlet collaboration?

668

Difference between forward() method and sendredirect() method ?

589

Which event is fired at the time of project deployment and undeployment?

794

What is difference between get and post method?

574

Which event is fired at the time of session creation and destroy?

882

What is the purpose of requestdispatcher interface?

616

How many objects of a servlet is created?

796

How can we perform any action at the time of deploying the project?

623

Who is responsible to create the object of servlet?

723

How do cookies work in servlets?

583

What are the differences between servlet context vs servlet config?

582

What are the different methods of session management in servlets?

545

What are the differences between forward() method and sendredirect() methods?

553

Explain the role of dispatcherservlet and contextloaderlistener.

610


Post New Servlets Questions

Un-Answered Questions { Servlets }

What are the types of protocols supported by httpservlet ?

708


What’s the difference between genericservlet and httpservlet?

534


What is the life-cycle of servlets?

638


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

605


What is http servlet? Explain with the help of an example.

581






What is java servlet session?

533


What is called a session?

625


What do you mean by default initialization in java servlet?

606


Which application server is best for java?

560


How can we include static files in the jsp page?

618


What is the use of httpservletrequestwrapper?

592


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

530


What is the type of method for sending request from http server?

599


What is a web application and what is it’s directory structure?

588


Why are servlets used?

534