What is the difference between an Applet and a Servlet?

Technology CommunityCategory: JavaWhat is the difference between an Applet and a Servlet?
VietMX Staff asked 4 years ago

An Applet is a client side java program that runs within a Web browser on the client machine. On the other hand, a servlet is a server side component that runs on the web server.An applet can use the user interface classes, while a servlet does not have a user interface. Instead, a servlet waits for client’s HTTP requests and generates a response in every request.