Whats the advantages using servlets over using CGI?
Answer / Piyush Mishra
Servlets offer several advantages over CGI:
1. Reusability: Servlets can be reused for multiple requests, whereas CGI programs are executed from scratch for every request.
2. Performance: Since servlets are loaded into the server's memory only once and share resources, they offer better performance compared to CGI.
3. Simplicity: Servlets provide a simpler programming model than CGI since they can leverage Java's powerful libraries for handling requests and responses.
| Is This Answer Correct ? | 0 Yes | 0 No |
what is the control flow in servlet when we send a request?
Explain the architechure of a servlet?
Explain get and post.
What is the <load-on-startup> element?
What is use of parseQueryString ?
What is the difference between portlet and servlet?
What are the benefits of using servlet over cgi?
Hi Friends, Can we make any method thread safe withour synchronized keyword?
What are the difference between session and cookies in servlet? Explain
What is servlet and list its types?
How to get the path of servlet in the server?
Which HTTP method is non-idempotent?