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 are the annotations used in servlet 3?
What do you mean by session tracking and also explain its techniques?
What are the difference between session and cookies in servlet? Explain
What do you mean by request dispatcher in servlet? Also explain its methods.
Explain web container.
How do you invoke a servelt?
Explain jsessionid?
What are the types of an http request?
What is api in servlet?
Why servlet is used as controller ? Not JSP? I want complete explation?
What are the phases of servlet life cycle?
What are Servlets?
What is url encoding and url decoding
Where do you define dispatcherservlet?
What are session variable in servlets?