Best Answer

Applet is a part of Core JAVA and Servlet of Advance Java. Applet is client side program and Servlet is Server side. When Applet runs it take the resources of client whereas Servlet is processed at server. An Applet's class, jar files can be accessed and downloadable by client but not so in case of servlet. Applets can run under any web browser their execution is dependent on Client as they require JRE Whereas Servlets do not require any thing specific at client side, as they require java enabled web/application Server. Dilpreet Singh (SCJP,OCA 9i)
The main difference is that a servlet is a server side component while applet is a client side component, moreover, a servlet doesn't have GUI while applet have GUI. A servlet runs inside a server and results are sent to client, so it consumes less network bandwidth, and also secure, while applet runs on client side in a browser, so entire code for applet is 1st sent to client and then it is executed on the client machine itself, so it also consumes more network bandwidth.

User Avatar

Wiki User

โˆ™ 2013-09-23 01:08:49
This answer is:
User Avatar
Study guides
See all Study Guides
Create a Study Guide

Add your answer:

Earn +20 pts
Q: What is the difference between an applet and a servlet?
Write your answer...
Related questions

Difference between java applet and java application?

Answer:Java Applet is a kind of application that running on the client's browser, when a browser request a applet embedded page, the applet will downloaded to the client computer and executed within the browser. Servlets is a application that running on the server, when a server receive a request of a servlet, the server will process the servlet and give the result to the client back after the servlet is done.

Differniate between applet and servlet in java?

Applet: It is run on browser, i mean client side. Servlet: It is run on server, i mean server side.

Difference between applet and widget in java?

The major difference between an applet and a widget is that a widget has a host software system. An applet is an application.

Differentiate Java applet and Java servlet?

Java Applet is an application designed to transmit on internet to execute on java compatible browsers. Java Servlet is a server side program used to provide services to clients.

How easily does servlet integrate into an existing Java application or applet?

(This is a bit subjective). Servlets can integrate easily into an existing Java application or applet, simply because a servlet is just another class, which is a fundamental concept taught to almost every java programmer.

Difference between HTTP servlet and Generic servlet?

The difference is that a GenericServlet has no defined protocol (it is "generic"), while HttpServler uses the HTTP protocol. HttpServlet is a subclass of GenericServlet with the purpose of creating a servlet for a web site.

What is the difference between networking and servlet in java?

Networking is a basic action. A servlet in Java is a single part of networking, a single task.

What is the difference between applet and jsp?

Applet is an executable file that is automatically downloaded when we open a browser. Swing applications can operate on local data when the network is not there.

What is an important difference between writing a Java application and a Java applet?

A Java applet is embedded within a web page, while a Java application will run directly on your computer.

What is the difference between applets and application software?

applets are tiny applications on web sites like a flash game on addicting games application software is an application that is actually saved to your hard drive. unless you use a flash ripper on a applet then the applet is still counted as an applet

What is the difference between java frame and java applet?

Fundamentally there are many differences but in general, Frame is the one that can be accessed only in standalone environment where as the applet can be embedded and invoked in an HTML page.

What are the difference between applet to application?

An applet runs within a browser page, or similarly within some other application. An "application" is more independent (it usually does need an operating system, but nothing else).

What is difference between Servlet and webserver?

A Servlet is part of a web application. A Web server is the server on which this web application is deployed. Ex of web server - Websphere, Weblogic, Tomcat etc.

What is the difference local applet and remote applet?

A LOCAL applet is the one which is stored on our computer system.when browser try to access the applet, it is not necessary for our computer to be connected to The Internet. A REMOTE applet is the one which is not stored on our computer system and we are required to be connected to the Internet. PARITOSH Khanna Happy Programing

What is difference between java applet and java Swing?

A Java Applet is a class which is intended to be run from within a web browser. Java Swing is an entire package of classes and interfaces which is dedicated to providing a comprehensive collection of GUI elements.

Difference between java applet and java class?

A java class is code that describes the attributes and the methods for an object. A java applet is a small program that can be placed within a web page, like a small game or a calculator.

Difference between applet and awt class?

1.applet has a life cycle while awt doesn't 2.awt is ued for web based applications whereas awt for window based. .....garima

Difference between start and lint method of applet?

First of all, let's assume that by "lint" you mean "init." There are two methods called at the beginning of an applet's lifetime: Applet.init() - Called to tell the applet that it has been loaded into the system. You should use this method to initialize any resources used by the applet. Applet.start() - Called to tell the applet that it should start running. start() is always called after init()

What is the difference between apache webserver and tomcat webserver?

apache web server is a webserver. tomcat is a servlet container.

Difference between applet and GUI in java?

applet is for browsers like firefox, chrome or IE "well, An applet is a program written in the Java programming language that can be included in an HTML page, much in the same way an image is included in a page. When you use a Java technology-enabled browser to view a page that contains an applet, the applet's code is transferred to your system and executed by the browser's Java Virtual Machine (JVM). For information and examples on how to include an applet in an HTML page, refer to this description of the <APPLET> tag. The difference between the applet and swing is as mentioned below: 1.Applets are Java programs which are capable of being run within a browser. Swing is a GUI framework. 2. Applet belongs to java.awt package and swing belongs to javax.swing.* package. 3. Applet is a heavy weight component but swing comes under light weight component's category. 4.Swing is a set of classes under JFC that provide lightweight visual component , enable creation of attractive GUI. But Applet is heavyweight component and needs web browser or tool known as AppletViewer."

What is the difference between heavy weight and lightweight programing language in java script?

Applet is a heavy component,Applet uses AWT flow layout,Swing is a light weight component, Using UI Manager, swing have look and feel according

What is difference between single threaded servlet and multi threaded servlet?

The single thread model means that your servlet would not be multi-threaded. If there are two concurrent requests to your servlet then 2 instances of your servlet will be created to process these 2 requests. You can implement the single thread model by implementing the SingleThreadModel interface in your class. This is just a marker interface and does not have any methods. The multi threaded model means that your servlet would be multi-threaded and only one instance would exist. Multiple concurrent requests would be served by the same instance but in different threads. You can implement the multi threaded model by not implementing the SingleThreadModel interface in your servlet class.

What is the difference between JAVA and applet?

In normal java programs main method is included and executed in Command prompt. In Applets main method is not present and executed in browser Applet programs provide more user friendly environment too.

Difference between temporary servlet and permanent servlet?

A temporary servlet is started when a request arrives and shut down after the response is generated. A permanent servlet is loaded when the server is started and lives until the server is shut down. * This is useful when startup costs are high, such as a servlet that establishes a connection to a database. * Also useful for permanent serverside service, such as an RMI server. * Provides faster response to client requests when this is crucial. Being temporary or permanent is part of the server configuration.

What is the difference between RequestDispatcher.forward and HttpServletResponse.sendRedirect?

In send Redirect whenever the client makes any request it goes to the container, there the container decides whether the concerned servlet can handle the request or not. If not then the servlet decides that the request can be handle by other servlet or jsp. Then the servlet calls the sendRedirect() method of the response object and sends back the response to the browser along with the status code. Then the browser sees the status code and look for that servlet which can now handle the request. Again the browser makes a new request, but with the name of that servlet which can now handle the request and the result will be displayed to you by the browser. In all this process the client is unaware of the processing.