1.Servlet is by default persistent while CGI is not persistent by default
2.Servlet is stateful by default but CGI is not.
3.Servlet written in java can utilise the oops concepts of java but CGI
is not necessarily written in java.
4.Servlet written in java can be seamlessly integrated with other java
thechnologies like JDBC but CGI is not necessarily written in java.