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                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
 
Categories  >>  Software  >>  Core Java  >>  Java J2EE  >>  Java Related
 
 


 

 
 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 is the difference between jsp and servlet?
 Question Submitted By :: Sivasubramanian.k
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is the difference between jsp and servlet?
Answer
# 1
JSP are java server pages which constitute of html pages 
embedded in it ie it is useful for both presentation and 
application/business logic..It is compiled only once and 
each time it is not executed by server..While servlet are 
server side programs which are compiled  and is executed
each time..
 
Is This Answer Correct ?    0 Yes 1 No
Sivasubramanian.k
 
  Re: What is the difference between jsp and servlet?
Answer
# 2
jsp means java server page ,jsp is  laso a servelt .In the 
servlet code is written by manually but in jsp code is 
generated by the jsp container. 
jsp is used where the presentation layer is more, and  this 
is uesd in medium and larger projects
servlet is used in small projects

adv:
 1. jsp can be devolp easly.
 2. jsp will take less time.
disadv:
  1. it can accupi the more memory(why because it fallow 
structural procedure menas by genearting the servlet code 
included unnecessry content also)
 
Is This Answer Correct ?    0 Yes 0 No
Madhu Sudana Rao.yadavalli
 
 
 
  Re: What is the difference between jsp and servlet?
Answer
# 3
>Servlets are gud at running logic.
>not so gud at producing large amount of o/p.

>Not so gud at lots of logic.
>g8 ay producing lots of texual o/p.
 
Is This Answer Correct ?    1 Yes 0 No
Dimpu
 
  Re: What is the difference between jsp and servlet?
Answer
# 4
Jsp is defined as Java server pages. 
Jsp and servlet both are server side programming language. 
the diffence in b/w these two is Jsp is used for 
presentation part and servlet is use to give the business 
logic. 
Servlet act as redirector also. it redirect your page as 
per the business logic. 

anyhow Jsp are compiled to servlet but Jsp comes in to 
picture to separate out the presentation logic from the 
servlet to make it loosely coupled.
 
Is This Answer Correct ?    1 Yes 0 No
Namita
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
what are the differences between final,finally,finalize methods?  3
how exactly garbage collection take place?  4
Why do we use public static with the main function in Java? Infosys4
How do u provide security in java  1
What is Runtime class and its purpose?  1
What are the OOPS concepts in Java ? Satyam2
how many types of cloning? Mobily1
watz the difference between abstract class and interface? Which one u ill choose as a designer? Sonata1
What is the life cycle of Thread ? HCL6
when asub class inherits a super class and overrides a public method of super class in sub class(public method in super class). why these methods needs to be public in sub class. (otherwise compile time error).  2
How the elements are organized in GridLayout?  1
How to create an instance of a class if the class has private constructor?  2
what is overloading and overriding with example? CMC1
Difference between JDK, JRE, JVM  4
Explain about GridBag Layout?  1
what is difference between abstraction and interface? FIC6
What is the superclass of exception?  2
What is the use of ?this??  3
what is inner class? HCL4
Is Java is 100% pure OOPS? Explain?  11
 
For more Core Java 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