What is the difference between an applet and a servlet?

Answers were Sorted based on User's Feedback



What is the difference between an applet and a servlet?..

Answer / 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

What is the difference between an applet and a servlet?..

Answer / ramadass

applet:It have graphical user interface.it runs in client
browser.
servlet:it have no graphical user interface.it run's in
server

Is This Answer Correct ?    49 Yes 9 No

What is the difference between an applet and a servlet?..

Answer / nitin soni (jack)

(1):Applet is a part of Core JAVA and Servlet of Advance
Java. Applet is client side program and Servlet is Server
side. When Applet runs it take the resources of client
whereas Servlet is processed at server.

(2):An Applet's class, jar files can be accessed and
downloadable by client but not so in case of servlet.

(3):Applets can run under any web browser their execution
is dependent on Client as they require JRE Whereas Servlets
do not require any thing specific at client side, as they
require java enabled web/application Server.

Is This Answer Correct ?    30 Yes 1 No

What is the difference between an applet and a servlet?..

Answer / sanjay

servlet operates within the domain of server while applet
does not required support for java in the java web browser.

Is This Answer Correct ?    20 Yes 5 No

What is the difference between an applet and a servlet?..

Answer / ravikiran.chd

Applet is teh application which runs on browser,servlet is
the one which runs on server

Is This Answer Correct ?    14 Yes 0 No

What is the difference between an applet and a servlet?..

Answer / pranavbapat

Applet is for a browser.
Servlet is for server.

Applet has GUI.
Server has no GUI.

Applet is client side coding.
Servlet is server side coding.

Applet operates within the domain of a web browser.
Servlet operates within the domain of a web server.

With applets, only static web pages can be developed.
With servlets, dynamic web pages can be developed.

Is This Answer Correct ?    10 Yes 1 No

What is the difference between an applet and a servlet?..

Answer / thamiz

Thanks Radhika for an extensive answer

Is This Answer Correct ?    9 Yes 6 No

What is the difference between an applet and a servlet?..

Answer / manjit k

Thanks Radhika

Is This Answer Correct ?    5 Yes 2 No

What is the difference between an applet and a servlet?..

Answer / sssk

applets extends the functionality of web browser, servlet extends the functinality of webserver.

Is This Answer Correct ?    3 Yes 0 No

What is the difference between an applet and a servlet?..

Answer / praveenkumar

thankyou very much ur explanation very nice, up to this
moment i felt confusion, right now i overcome that doubt.

Is This Answer Correct ?    7 Yes 5 No

Post New Answer

More Servlets Interview Questions

Should I override the service() method?

0 Answers  


What do you mean by filter in servlet?

0 Answers  


What are session variable in servlets?

0 Answers  


What are its drawbacks of cgi?

0 Answers  


How do you design microservices?

0 Answers  






what happens if we wont use destroy()?

4 Answers   IBM,


Which protocol will be used by browser and servlet to communicate

0 Answers  


What is session tracking?

0 Answers  


can i call destroy() method in init() method of servlet

9 Answers   Ericsson, IBM,


Hi............ When i am started the tomcat server it started. but it not load the jar files wht we deploving file.suppose we load the wapp folder in webapps. At running time it show the below error in tomcat server INFO: validateJarFile(C:\Program Files\Apache Software Foundation\Tomcat 5.0\web apps\wapp\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, s ection 9.7.2. Offending class: javax/servlet/Servlet.class How to slove this problem in my system. plz give answer for this problem.

5 Answers  


What do you mean by cgi in servlet?

0 Answers  


How many objects of a servlet is created?

0 Answers  


Categories