Edit Edit

Java Servlet FAQ

What's the difference between an applet and a servlet?

An applet is a Java program that runs within a Web browser on the client machine whereas a servlet runs on the Web server. An applet can use the user interface classes like AWT or Swing while the servlet does not have a user interface. The servlet behaves like a CGI script; it waits for HTTP requests from a browser and generates a response that is displayed in the browser.

Last updated 12/29/1999 01:06:58 AM