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 / sahil verma

Applets

Applets are applications designed to be transmitted over
the network and executed by Java compatible web browsers.
An Applet is a client side java program that runs within
a Web browser on the client machine.
An applet can use the user interface classes like AWT or
Swing.
Applet Life Cycle Methods: init(), stop(), paint(),
start(), destroy()

Servlets

Servlets are Java based analog to CGI programs,
implemented by means of servlet container associated with an
HTTP server.
Servlet is a server side component which runs on the web
server.
The servlet does not have a user interface.
Servlet Methods: doGet(), doPost()

Is This Answer Correct ?    0 Yes 0 No

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

Answer / vemula sowmya

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 ?    0 Yes 0 No

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

Answer / sepna

radhi, thanks alot for your valuable and enlarge answer

Is This Answer Correct ?    2 Yes 5 No

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

Answer / nickvalente

Hi Radhika,
Thank u so much
i got many points from your notes
u r too smart and good at subject

Is This Answer Correct ?    5 Yes 9 No

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

Answer / varsha vilas kalebag

applet is nothing but application on net .aaplet needs web
browser

Is This Answer Correct ?    9 Yes 21 No

Post New Answer

More Servlets Interview Questions

Difference between doget and dopost?

0 Answers  


Who is responsible to create the object of servlet?

0 Answers  


Can we refresh servlet in client and server side automatically?

0 Answers  


How to run a servlet program?

7 Answers   Infosys,


How httpservlet is different from the genericservlet?

0 Answers  






What is webservlet?

0 Answers  


what do you understand by url rewriting?

0 Answers  


Explain mvc pattern.

0 Answers  


What do you mean by a filter and how does it work?

0 Answers  


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

0 Answers  


Can we override servlet service method?

0 Answers  


Why session tracking is needed?

0 Answers  


Categories