What is the difference between jsp and servlet?
Answer Posted / madhu sudana rao.yadavalli
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 ? | 8 Yes | 3 No |
Post New Answer View All Answers
What do u mean by variable?
Say you want to store the information about a number of pets in an array. Typical information that you could store for each pet (where relevant) would be • Breed of animal • Animal's name • Its birth date • Its sex • Whether it has been sterilised or not • When it is due for its next inoculation • When it last had its wings clipped For each type of pet (eg. dog, cat or bird) you would typically define a class to hold the relevant data. Note: You do not need to implement these classes. Just answer the following questions. 3.1.1 What would be the advantage of creating a superclass (eg. Pet) and declaring an array of Pet objects over simply using an array of Objects, storing each of the instances of the different pet classes (eg. Dog, Cat or Bird) in it? 3.1.2 Would you define Pet as a class or as an interface? Why? (2) (2)
What is the function of compareto in java?
What is the length of a string?
What is the use of static class?
What are synchronized methods and synchronized statements in java programming?
Can private class be inherited in java?
What are the benefits of operations?
How does hashset work in java?
What classes of exceptions may be thrown by a throw statement?
What data type is true or false?
Why super is first line in java?
What is package protected in java?
How we can execute any code even before main method?
What is a priority queue java?