answersLogoWhite

0

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) www.geocities.com/heartsingh
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

11y ago

What else can I help you with?

Related Questions

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.


What is applet to servlet communication?

Applet to servlet communication refers to the interaction between a Java applet running in a client’s web browser and a Java servlet running on a server. This communication typically occurs over HTTP, where the applet sends requests to the servlet to retrieve or send data, often using URL connections. The servlet processes these requests and returns responses, which the applet can then use to update its UI or perform further actions. This interaction enables dynamic web applications by allowing client-side applets to leverage server-side resources.


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.


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()


Difference between servlet engines and servlet chaining?

Servlet engines are software components that manage the execution of servlets, handling requests and responses, and providing an environment for servlets to run within a web server. In contrast, servlet chaining refers to the practice of invoking multiple servlets in a sequence, where the output of one servlet can be passed as input to another, allowing for modular and reusable components in web applications. Essentially, servlet engines provide the infrastructure, while servlet chaining is a design technique for enhancing functionality within that infrastructure.


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

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


What is the difference between servletcontext and servletconfig?

ServletContext Defines a set of methods that a servlet uses to communicate with its servlet container.ServletConfig is a servlet configuration object used by a servlet container used to pass information to a servlet during initialization. All of its initialization parameters can ONLY be set in deployment descriptor.The ServletContext object is contained within the ServletConfig object, which the Web server provides the servlet when the servlet is initialized.You can specify param-value pairs for ServletContext object in tags in web.xml file.The ServletConfig parameters are specified for a particular servlet and are unknown to other servlets. The ServletContext parameters are specified for an entire application outside of any particular servlet and are available to all the servlets within that application.By Santanu