whats the diff between jsp and servlets?

Answer Posted / dillip

JSP is used mainly for presentation only. A JSP can only be
HttpServlet that means the only supported protocol in JSP
is HTTP. But a servlet can support any protocol like HTTP,
FTP, SMTP etc.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What environment variables are required to be set on a machine in order to run Java programs?

624


What is integer valueof?

645


What is scope & storage allocation of global and extern variables? Explain with an example

585


What is identifier with example?

581


Difference between final and effectively final ? Why is effectively final even required ?

563






What is an example of declaration?

531


Can we increase array size dynamically in java?

517


Can you have two constructors in java?

506


Which of the classes will have more memory allocated?

545


What is jagged array in java?

537


Using callable statement how can you pass out parameters, explain with example?

592


Why is the main method static?

608


How thread scheduler schedule the task?

587


What is the difference between member variables initialization and assignment in a constructor?

669


What is an object in java?

562