Difference between java applet & servlets

give me all details

What are the Differences Between Applets and Servlets

What are the Differences Between Applets and Servlets

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.

The main difference between Applet and servlet is , Applet is an client side program that program we can run inside of client , the Application is transmitted over the internet .

with the help of server only we can run the servlet program ,But the Applet we need not any server…

The basic defference between servlet and applet are as follows:
.The applet is client side programming whearas servlet is server side programming.
.The program is run over the browser and result sent to the client in case of applet whearas in case of servlet the program will run over the server & result will sent back to client this will take less time to execute a program.
.Applet does not have GUI interface whearas servlet has GUI interface

[quote=Anonymous]The basic defference between servlet and applet are as follows:
.The applet is client side programming whearas servlet is server side programming.
.The program is run over the browser and result sent to the client in case of applet whearas in case of servlet the program will run over the server & result will sent back to client this will take less time to execute a program.
.Applet has GUI interface whearas servlet does not have GUI interface[/quote]

[quote=Anonymous]The basic defference between servlet and applet are as follows:
.The applet is client side programming whearas servlet is server side programming.
.The program is run over the browser and result sent to the client in case of applet whearas in case of servlet the program will run over the server & result will sent back to client this will take less time to execute a program.
.Applet have GUI interface whearas servlet does not have GUI interface[/quote]

A servlet is a small Java program that runs within a Web server. Servlets receive and respond to requests from Web clients, usually across HTTP, the HyperText Transfer Protocol. Servlet is an opposite of applet as a server-side applet. Applet is an application running on client while servlet is running on server.

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)


Note: There are comments associated with this question. See the discussion page to add to the conversation.


Want to get-on Google’s first page and loads of traffic to your website? Hire a SEO specialist from Ocean Groups seo specialist

[quote=Anonymous]The basic defference between servlet and applet are as follows:
.The applet is client side programming whearas servlet is server side programming.
.The program is run over the browser and result sent to the client in case of applet whearas in case of servlet the program will run over the server & result will sent back to client this will take less time to execute a program.
.Applet does have GUI interface whearas servlet does not have GUI interface[/quote]