What is the difference between an applet and a servlet?
Answer Posted / 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 |
Post New Answer View All Answers
What does the term localization refer to?
How servlet is created?
What are the kinds of http requests?
Which interface must be implemented by all servlets?
What do you mean by request dispatcher in servlet?
What is the use of send redirect () method?
How is a servlet implemented in code?
What is webservlet?
What is meant by Servlet? What are the parameters of service method?
What are the different session tracking techniques?
How to get the path of servlet in the server?
What do you mean by mime type?
Why is init() method is used in servlets?
What is http servlet in java?
What is the major difference between servlet and applet?