What is the difference between an applet and a servlet?
Answers were Sorted based on User's Feedback
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 |
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 |
Answer / sepna
radhi, thanks alot for your valuable and enlarge answer
| Is This Answer Correct ? | 2 Yes | 5 No |
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 |
Answer / varsha vilas kalebag
applet is nothing but application on net .aaplet needs web
browser
| Is This Answer Correct ? | 9 Yes | 21 No |
if u havea .class file ,how can u say whether it is servlet or not ,dont use java decompliler
What is the role of the webserver?
Explain web container.
how the server will know its the same jsp page?
Can a servlet be called by passing its name as a parameter in the URL?
can anybody send me j2ee softwares such as tomcat,weblogic server ,netbeans
What is the main purpose of java servlets?
What is the need of servlet filters?
Explain the difference between a web server and a web container?
What is servlet used for?
how can we execute servelt? what the use ".war" or ".jar" file creation
Why doesn’t a servlet include main()? How does it work?