人気の面接質問と回答・オンラインテスト
面接対策、オンラインテスト、チュートリアル、ライブ練習のための学習プラットフォーム

集中型学習パス、模擬テスト、面接向けコンテンツでスキルを伸ばしましょう。

WithoutBook は、分野別の面接質問、オンライン練習テスト、チュートリアル、比較ガイドをひとつのレスポンシブな学習空間にまとめています。

面接準備

Servlets 面接の質問と回答

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

関連する比較

JSP vs Servlets

質問 31. When we don't write any constructor for the servlet, how does container create an instance of servlet?

Container creates instance of servlet by calling Class.forName(className).newInstance().

役に立ちましたか? コメントを追加 コメントを見る
 

質問 32. Once the destroy() method is called by the container, will the servlet be immediately destroyed? What happens to the tasks(threads) that the servlet might be executing at that time?

Yes, but Before calling the destroy() method, the servlet container waits for the remaining threads that are executing the servlet?s service() method to finish.

役に立ちましたか? コメントを追加 コメントを見る
 

質問 33. What is the difference between callling a RequestDispatcher using ServletRequest and ServletContext?

>We can give relative URL when we use ServletRequest and not while using ServletContext.

役に立ちましたか? コメントを追加 コメントを見る
 

質問 34. 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()?

Since ServletRequest has the current request path to evaluae the relative path while ServletContext does not.

役に立ちましたか? コメントを追加 コメントを見る
 

ユーザー評価で最も役立つ内容:

著作権 © 2026、WithoutBook。