What is the difference between an applet and a servlet?
Answer Posted / radhika
APPLETS:
1)It is a special type of java program which runs
on any web browser.
2)Applets resides at server but when client makes a
request it completely loaded into a place in the browser.
that place is known as SAND BOX.
3)Applet lives inside the sand box only. it does'nt
have any access to any things which exists out side of the
sand box.
4) Applets can't communicate with any other server
except where they resides.
5)Applets are useful to develop the static web pages.
SERVLETS:
1) Servlet is a purely server side program
2) Servlets always runs in the server.
3) Servlets can be placed in any web and
application servers.
4) Servlets are useful to develop the dynamic web
pages.
| Is This Answer Correct ? | 107 Yes | 11 No |
Post New Answer View All Answers
What do you mean by web applications? Explain web application directory arrangement?
What are the various ways of session supervision in servlets?
How can the session in servlet can be destroyed?
Tell us something about servletconfig interface.
How to rectify errors in java servlet while compilation?
Explain servlet life cycle?
What are the types of an http request?
What is java servlet?
Elucidate servlet attributes and its scope?
What is servlet used for?
How to handle exceptions thrown by application with another servlet?
What is http servlet? Explain with the help of an example.
What is the life-cycle of servlets?
What are the phases of servlet life cycle?
How can you push data from an Applet to a Servlet?