Самые популярные вопросы и ответы для интервью и онлайн-тесты
Образовательная платформа для подготовки к интервью, онлайн-тестов, учебных материалов и живой практики

Развивайте навыки с целевыми маршрутами обучения, пробными тестами и контентом для подготовки к интервью.

WithoutBook объединяет вопросы для интервью по предметам, онлайн-практику, учебные материалы и сравнительные руководства в одном удобном учебном пространстве.

Подготовка к интервью

Servlets вопросы и ответы для интервью

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

Связанные сравнения

JSP vs Servlets

Вопрос 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).

Это полезно? Добавить комментарий Посмотреть комментарии
 

Вопрос 27. Which interface must be implemented by all servlets?

Servlet interface.

Это полезно? Добавить комментарий Посмотреть комментарии
 

Вопрос 28. Explain the life cycle of Servlet.

Это полезно? Добавить комментарий Посмотреть комментарии
 

Вопрос 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.

Это полезно? Добавить комментарий Посмотреть комментарии
 

Вопрос 30. Why don't we write a constructor in a servlet?

Container writes a no argument constructor for our servlet.

Это полезно? Добавить комментарий Посмотреть комментарии
 

Самое полезное по оценкам пользователей:

Авторские права © 2026, WithoutBook.