What is the main reason why servlets give better performance than programs that use the common gateway interface (CGI), even though Java programs generally run slower than C or C++ programs?
• It is a server side component that provides web applications for the server side.
• In servlets the programs are compiled using byte code and then run the programs using java compiler.
• Common gateway interface is a native language which provides dynamic contents.
• In this the programs are executed within the server