ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Java J2EE  >>  Java Related  >>  Servlets
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
What advantages do servlets have over CGI programs?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What advantages do servlets have over CGI programs?
Answer
# 1
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 ?    1 Yes 0 No
Guest
 
  Re: What advantages do servlets have over CGI programs?
Answer
# 2
there are two advantages:-
(a)in servlet,it is not necessary to create a seperate 
process to handle client request.
(b)servlets are platform independent because they are 
written in java.
 
Is This Answer Correct ?    0 Yes 0 No
Hariom Rao
 
 
 
  Re: What advantages do servlets have over CGI programs?
Answer
# 3
cgi makes use of multiprocessing.Means each and every
request is processed by an individual process.where as
servlets make use of multithreading.A single process with
multiple threads to accomplish the particular task
 
Is This Answer Correct ?    0 Yes 0 No
Ravikiran
 

 
 
 
Other Servlets Interview Questions
 
  Question Asked @ Answers
 
when you comppile the servlet is it neccesary to restaet the tomcat server? HCL5
What is the difference between servlet config and servlet context. Vertex5
which type of data passing is used in realtime?  1
What is a Proxy Server?  1
What are the security issues in Servlets?  1
How two servlets communicate with each other?  1
What is the difference between doGet and doPost?  3
What is the default HttpRequest method?  1
What are the types of ServletEngines?  1
How an Image can be loaded in a Servlet ?  1
How are Sessions are more advantage than using of Cookies or URLReWriting?  2
How to set a cookie that is persisted only for the duration fo the clients session?  1
what are binding listners?  1
Is the init(ServletConfig sc) throws IOException or not?  3
What advantages do servlets have over CGI programs?  3
What are setComment and getComment methods in Cookies?  1
What is Server-Side Includes? SAS1
what is the advantage of using Servlets over CGI programming?  2
How to deal with multi-valued parameters in a servlet?  2
how to use servlets with j2ee ? Tech-Mahindra1
 
For more Servlets Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com