What advantages do servlets have over CGI programs?

Answer Posted / guest

Servlets are written in Java and are platform-independent.

Servlets run under the JVM and may be secured using the Java
sandbox.

Servlets run as threads and may be preloaded to improve their
performance.

Is This Answer Correct ?    12 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of httpservletrequestwrapper?

594


why we should override only no-agrs init() method.

682


Can filter be used as request or response?

548


What's the difference between servlets and applets?

568


How do I know if java is running on linux?

607






What do you mean by cgi in servlet?

636


What are the different ways we can maintain state between requests?

582


How to handle exceptions thrown by application with another servlet?

620


What are the benefits of using servlet over cgi?

584


List some life cycle methods of a servlet.

592


How forward () method is different from send redirect () method?

520


What is servlet and its types?

560


How do you find out what client machine is making a request to your servlet

534


What is servlet in web technology?

580


Write a command to get actual path of a servlet to the server?

541