Explain 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

Suggest An Answer

No suggestions avaliable!

Related Interview Questions