What are the difference between Servlet and CGI?
Servlet | CGI | |
---|---|---|
1. | Portable | Not portable |
2. | Requests handled by lightweight Java Thread | Requests handled by heavyweight OS process |
3. | Data sharing possible | Data sharing not available |
4. | Link directly to the Web server | Cannot link directly to the Web server |
BY Best Interview Question ON 25 Apr 2020