Preguntas y respuestas de entrevista mas solicitadas y pruebas en linea
Plataforma educativa para preparacion de entrevistas, pruebas en linea, tutoriales y practica en vivo

Desarrolla tus habilidades con rutas de aprendizaje enfocadas, examenes de practica y contenido listo para entrevistas.

WithoutBook reune preguntas de entrevista por tema, pruebas practicas en linea, tutoriales y guias comparativas en un espacio de aprendizaje responsivo.

Preparar entrevista

Servlets preguntas y respuestas de entrevista

Test your skills through the online practice test: Servlets Quiz Online Practice Test

Diferencias relacionadas

JSP vs Servlets

Pregunta 26. What is servlet context ?

The servlet context is an object that contains a servlet's view of the Web application within which the servlet is running. Using the context, a servlet can log events, obtain URL references to resources, and set and store attributes that other servlets in the context can use. (answer supplied by Sun's tutorial).

Es util? Agregar comentario Ver comentarios
 

Pregunta 27. Which interface must be implemented by all servlets?

Servlet interface.

Es util? Agregar comentario Ver comentarios
 

Pregunta 28. Explain the life cycle of Servlet.

Es util? Agregar comentario Ver comentarios
 

Pregunta 29. When is the servlet instance created in the life cycle of servlet? What is the importance of configuring a servlet?

An instance of servlet is created when the servlet is loaded for the first time in the container. Init() method is used to configure this servlet instance. This method is called only once in the life time of a servlet, hence it makes sense to write all those configuration details about a servlet which are required for the whole life of a servlet in this method.

Es util? Agregar comentario Ver comentarios
 

Pregunta 30. Why don't we write a constructor in a servlet?

Container writes a no argument constructor for our servlet.

Es util? Agregar comentario Ver comentarios
 

Lo mas util segun los usuarios:

Copyright © 2026, WithoutBook.