اكثر اسئلة واجوبة المقابلات طلبا والاختبارات عبر الإنترنت
منصة تعليمية للتحضير للمقابلات والاختبارات عبر الإنترنت والدروس والتدريب المباشر

طوّر مهاراتك من خلال مسارات تعلم مركزة واختبارات تجريبية ومحتوى جاهز للمقابلات.

يجمع WithoutBook أسئلة المقابلات حسب الموضوع والاختبارات العملية عبر الإنترنت والدروس وأدلة المقارنة في مساحة تعلم متجاوبة واحدة.

التحضير للمقابلة

Servlets اسئلة واجوبة المقابلات

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

فروقات ذات صلة

JSP vs Servlets

سؤال 6. What's the difference between GenericServlet and HttpServlet?

HttpServlet class extends GenericServlet class which is an abstract class to provide HTTP protocol-specific functionalities. Most of the java application developers extend HttpServlet class as it provides more HTTP protocol-specific functionalities. You can see in HttpServlet class doGet (), doPOst () methods which are more targeted towards HTTP protocol specific functionalities. For instance we can inherit from GenericServlet class to make something like MobileServlet. So GenericServlet class should be used when we want to write protocol specific implementation which is not available. But when we know we are making an internet application where HTTP is the major protocol its better to use HttpServlet.

هل هذا مفيد؟ اضف تعليقا عرض التعليقات
 

سؤال 7. What’s the architecture of a Servlet package?

At the top of all is the main servlet interface which is implemented by the generic servlet. But generic servlet does not provide implementation specific to any protocol. HTTP servlet further inherits from the generic servlet and provides HTTP implementation like "Get" and "Post". Finally comes our custom servlet which inherits from HTTP Servlet.

هل هذا مفيد؟ اضف تعليقا عرض التعليقات
 

سؤال 8. Why is HTTP protocol called as a stateless protocol?

A protocol is stateless if it can remember difference between one client request and the other. HTTP is a stateless protocol because each request is executed independently without any knowledge of the requests that came before it.

هل هذا مفيد؟ اضف تعليقا عرض التعليقات
 

سؤال 9. What are the different ways we can maintain state between requests?

Following are the different ways of maintaining state’s between stateless requests:-
>> URL rewriting
>> Cookies
>> Hidden fields
>> Sessions

هل هذا مفيد؟ اضف تعليقا عرض التعليقات
 

سؤال 10. What is Servlet?

A servlet is a Java technology-based Web component, managed by a container called servlet container or servlet engine, that generates dynamic content and interacts with web clients via a request/response paradigm.

هل هذا مفيد؟ اضف تعليقا عرض التعليقات
 

الاكثر فائدة حسب تقييم المستخدمين:

حقوق النشر © 2026، WithoutBook.