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


Please Help Members By Posting Answers For Below Questions

Is it possible to have a constructor inside the servlet?

554


What is difference between jsp and servlet?

647


Why do we have servlet listeners?

599


Is servlet thread safe?

523


How do we go with database connection and log4j integration in servlet?

708






What do you mean by web applications?

627


Why do we use sendredirect() method?

550


What is the purpose of inter-servlet communication?

593


Which exception is thrown if the servlet is not initialized properly?

594


what is servlet chaining?

623


I Have A Plan to develop a Project in Struts,I want the template of struts project with Hibernate.Canany body provide me the required information?

2239


What is a servlet context?

602


how many jsp scripting elements are there and what are those?

542


What is difference between get and post method?

573


How to read request headers from servlets?

564