Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Servlets%20Interview%20Questions%20and%20Answers

Question: What are advantages of servlets over CGI?
Answer: In CGI for every request there is a new process started which is quiet an overhead. In servlets JVM stays running and handles each request using a light weight thread. In CGI if there are 5000 request then 5000 CGI program is loaded in memory while in servlets there are 5000 thread and only one copy of the servlet class.
Is it helpful? Yes No

Most helpful rated by users:

©2024 WithoutBook