Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

1.

Introduction to Servlet:

Answer»

A servlet is an extension to a server. It is a Java class that is loaded to expand the functionality of the server. It helps extend the capability of web servers by providing support for dynamic response and data persistence. These are commonly USED with web servers, where they can TAKE the PLACE of CGI scripts. A servlet runs inside a Java Virtual Machine (JVM) on the server, and hence it is safe and portable. Servlets OPERATE only within the domain of the server. These do not require support for Java in the web browser.

The original servlet specification was created by Sun Microsystems. Sun packed Java with Internet functionality and announced the servlet interface. The first version was finalized in June 1997. The servlet specification was developed under the Java Community Process starting with version 2.3. Servlets represent a more efficient architecture as compared to the OLDER CGI.