Applet v/s Servlet

Sachin Chourasiya picture Sachin Chourasiya · Nov 12, 2009 · Viewed 23.7k times · Source

Whats the difference between Applet and Servlet in JAVA

Answer

falstro picture falstro · Nov 12, 2009

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.