Whats the difference between Applet and Servlet in JAVA
+4
A:
Applet runs on the client, servlet runs on the server. It's as simple as that.
More specifically, that applet is downloaded to the client, and executes in a JRE inside the browser, and can display whatever it wants to display within the applet frame. The servlet instead runs on the server and (generally) produces a HTML page which is displayed in your browser.
roe
2009-11-12 17:15:13
+1
A:
A Java Applet is a Java class which is run on the client's JVM (via a Browser Plugin).
A Java Servlet is run on the server-side in a Servlet container, like Apache Tomcat and the client recieves the results in the form of plain old HTML.
The key difference is that where as one runs on the client side, the other on the Server side.
Amit
2009-11-12 17:15:53