Servlets Interview Questions
Questions Answers Views Company eMail

How we can get ip address of client in servlet?

533

Explain servlet events?

558

List the Different types of servlet?

577

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

541

Explain the difference between get and post method in servlet?

596

What do you mean by url pattern in servlet?

621

Explain the difference between generic servlet and http servlet?

539

Explain the jar and war files in servlet?

549

Explain the difference between jsp and servlet?

584

How we can create war file in servlet?

655

What do you mean by filter in servlet?

534

Explain the different ways for servlet authentication?

527

Explain the lifecycle of a servlet?

500

Explain the features are in servlet 3?

597

What are the difference between session and cookies in servlet? Explain

556


Post New Servlets Questions

Un-Answered Questions { Servlets }

Differentiate between the get and post method

563


What is difference between GenericServlet and HttpServlet?

563


How can I send user authentication information while making URL Connection?

539


What is the servletconfig object?

526


Why servlet is faster than jsp?

562






Why is it that we can't give relative URL's when using ServletContext.getRequestDispatcher() when we can use the same while calling ServletRequest.getRequestDispatcher()?

614


What are different ways for authentication of servlet?

523


Can servlet have a constructor ?

592


What is the use of servletconfig interface?

550


Write the code to get the server information in servlet.

564


Which protocol will be used by browser and servlet to communicate

576


Which method is called when reference variable is passed in system.net?

1825


Are Servlets Thread Safe? How to achieve thread safety in servlets?

555


Can you refresh servlet in client and server-side automatically?

613


What does the term localization refer to?

578