what is the advantage of using Servlets over CGI programming?

Answer Posted / ravat

There is only one main difference between CGI and Servlet that CGI is not that much efficient as servlets ,because Wen each time request cames to CGI it ll start from first i.e loading,instantiation and ll consume more time but in the case of Servlet only once server is loaded and instance is created and it is reused to other request and wenever the new request cames just it ll make use of same object

Is This Answer Correct ?    3 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When jsessionid is created?

609


Can you call a jsp from the servlet?

548


Difference between httpservlet and generic servlets?

608


What is a servlet-to-servlet communcation?

651


Explain is servlet mapping?

583






What is called Scriptlet?

564


Servlet is pure java object or not?

719


What is servlet in tomcat?

562


What is the use of servlet wrapper classes?

673


What is the difference between get and post methods?

604


Name the packages that work with servlet?

547


how the HTML data stored in web server?

1955


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

680


Can we fetch the attributes related to a servlet on a different servlet?

638


Why the container loads server at the application startup and how?

584