1.

What Is The Difference Between An Applet And A Servlet?

Answer»

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() .

Applets

Servlets



Discussion

No Comment Found