Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the difference between an applet and a servlet?

Answer Posted / sahil verma

Applets

Applets are applications designed to be transmitted over
the network and executed by Java compatible web browsers.
An Applet is a client side java program that runs within
a Web browser on the client machine.
An applet can use the user interface classes like AWT or
Swing.
Applet Life Cycle Methods: init(), stop(), paint(),
start(), destroy()

Servlets

Servlets are Java based analog to CGI programs,
implemented by means of servlet container associated with an
HTTP server.
Servlet is a server side component which runs on the web
server.
The servlet does not have a user interface.
Servlet Methods: doGet(), doPost()

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do servlets work?

975


Difference between httpservlet and generic servlets?

1042


How do we go with database connection and log4j integration in servlet?

1122


When using servlets to build the HTML, you build a DOCTYPE line, why do you do that?

1027


How can the referrer and the target urls be used in servlet?

948


Explain in brief the directory structure of a web application?

1054


What do you mean by session tracking and also explain its techniques?

901


What is cookie in servlet?

1011


What are all the protocols supported by httpservlet?

1184


What is the difference between the servlets and cgi programs?

942


Which java framework is most popular?

1068


Is it possible to have a constructor inside the servlet?

953


What do you mean by annotations in servlet?

1008


How do I know if java is running on linux?

1049


Differentiate between the get and post method

1004