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

What is getservletcontext?

1137


Which exception is thrown if the servlet is not initialized properly?

1088


If my browser does not support cookie, and my server sends a cookie instance what will happen?

1141


What is the effective way to make sure all the servlets are accessible only when user has a valid session?

1119


Why is a constructor needed in a servlet even if we use the init method?

1210


What if we pass negative value in load-on-startup?

1333


What do you mean by the servlet chaining?

1143


What are the important functions of filters?

1200


What is Client-Server Computing?

2482


How do you configure a centralized error handler in servlets?

1148


Explain get and post.

1161


How can you push data from an Applet to a Servlet?

1147


What is the difference between servlet and jsp?

1170


Explain the servlet context.

1209


How native code can be used in a servlet?

4118