Servlets Interview Questions
Questions Answers Views Company eMail

When servlet object is created?

820

What is servlet collaboration?

886

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

799

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

1066

What is difference between get and post method?

790

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

1130

What is the purpose of requestdispatcher interface?

832

How many objects of a servlet is created?

1013

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

892

Who is responsible to create the object of servlet?

935

How do cookies work in servlets?

807

What are the differences between servlet context vs servlet config?

827

What are the different methods of session management in servlets?

752

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

783

Explain the role of dispatcherservlet and contextloaderlistener.

897


Post New Servlets Questions

Un-Answered Questions { Servlets }

How do you define a servlet?

739


What are all the ways for session tracking?

838


Why don't we write a constructor in a servlet?

799


Is it possible to have a constructor inside the servlet?

750


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

879


Why HttpServlet class is declared abstract?

883


What is difference between the HTTP Servlet and Generic Servlet? Explain about their methods and parameters?

840


What is httpservlet and how it is different from genericservlet?

823


What are all the advantages of servlet over cgi?

816


What are the features added in Servlet 2.5?

972


What are the servlet events?

789


What if we pass negative value in load-on-startup?

1047


explain the advantages of servlet life cycle?

753


Explain mvc pattern.

780


What is cookie in servlet?

792