Difference between APPLET and SERVELT

Ques.IN JAVA WHAT IS DIFFERENCE BETWEEN APPLET AND SERVELT?
Ans.1) Applet is client side application whereas Servlet is Server side application.
2) An applet is a Java program that runs within a Web browser on the client machine whereas a servlet runs on the Web server.
3) An applet can use the user interface classes like AWT or Swing while the servlet does not have a user interface.
4) Servlet is a server, Applet is a browser.
5) Applet is a downloadable small program which runs on the client side and executed by the client's java enabled browser or by the Apllet viewer. It doesn't need main() method to begin the execution,instead it begin's its lifecycle where the name of the class is passed to the Appletviewer.. The Applet's lifecycle have 4 methods.

init()-Where it can initialise itself
start()- It can start running
stop()-stop running
destroy()-Cleanup process happens

Applets are treated as untrused and they have a limited permission to run in the client browser

Servlet can be treated as Server-side applets.It runs in a servlet container which is deployed in the webserver. The lifecycle of the servlet have 3 methods.

init()

If an instance of the servlet does not exist, the Web container
a. Loads the servlet class
b. Creates the instance of the servlet class
c. Initialise the servlet instance by calling the init() method

service()-invokes this method by passing request and response object and a subsequent call to the same servlet is invoked as thread

destroy()-If the servlet container decides to remove the servlet, it calls this method

People who read this post also read :



38 comments:

Great Post !!Clearly explained the difference :)

Thank you !! Very easy to understand !!!

Pls clear this doubt, Does applet need to be downlaoded every time it has to be executed,if i am right appication is one time downloadable.what is difference between app and applet.

Pls clear this doubt, Does applet need to be downlaoded every time it has to be executed,if i am right appication is one time downloadable.what is difference between app and applet.

I have read your blog its very attractive and impressive. I like it your blog.

Java Training in Chennai Core Java Training in Chennai Core Java Training in Chennai

Java Online Training Java Online Training Core Java 8 Training in Chennai Core java 8 online training JavaEE Training in Chennai Java EE Training in Chennai

Your differences between applet and servlet have explained clearly with good example.

Java Training in Chennai |
Best JAVA Training institute in Chennai

Thank you sharing the excellent post . you helped me to gain more information on the latest technique

Big data training in Chennai |
Hadoop training in velachery

Thanks for your informative article. Java is most popular programming language used for creating rich enterprise, desktop and web applications. Keep on updating your blog with such informative post. J2EE Training in Chennai | JAVA Training in Chennai| JAVA Course in Chennai

Testing an application is become essential for any product to get an effective result. Your post help you to gain more info on Selenium Testing

Selenium Training in chennai |
Selenium training institute in Chennai

Learned a lot of new things from your post! Good creation and HATS OFF to the creativity of your mind. Very interesting and useful blog!
Java Training in Chennai
Java Course in Chennai
Best Java Training in Chennai

There are lots of information about hadoop have spread around the web, but this is a unique one according to me. The strategy you have updated here will make me to get to the next level in big data. Thanks for sharing this.Hadoop Training in Chennai | Big Data Training in Chennai

The expansion of internet and intelligence in business process lead the way to huge volume of data. It is important to maintain and process these data to be efficient in data handling. Hadoop Training in Chennai | Big Data Training in Chennai

This comment has been removed by the author.

Your good knowledge and kindness in playing with all the pieces were
very useful. I don’t know what I would have done if I had not
encountered such a step like this.


java training in chennai


java Training in Bangalore

Interesting post! This is really helpful for me. I like it! Thanks for sharing!
Mobile application developers in Chennai | PHP developers Chennai

Interesting post! This is really helpful for me. I like it! Thanks for sharing!
Mobile application developers in Chennai | PHP developers Chennai

I am following your blog regularly and got great information. Keep blogging.!!
Responsive Website Development Company Chennai

Thanks for the post, I am techno savvy. I believe you hit the nail right on the head. I am highly impressed with your blog. It is very nicely explained. Your article adds best knowledge to our Java Online Training from India. or learn thru Java Online Training from India Students.

or learn thru JavaScript Online Training from India. Appreciating the persistence you put into your blog and detailed information you provide. Kindly keep blogging.

I believe there are many more pleasurable opportunities ahead for individuals that looked at your site.
Best Java Training Institute in chennai

I feel really happy to have seen your webpage and look forward to so many more entertaining times reading here. Thanks once more for all the details. Best Java Training Institute Chennai

our new valuable key points imply much a person like me and extremely more to my office workers. With thanks; from every one of us.

Java Training Institute Bangalore

Needed to compose you a very little word to thank you yet again regarding the nice suggestions you’ve contributed here.

Big Data Training in Bangalore

Thank you a lot for providing individuals with a very spectacular possibility to read critical reviews from this site.

Best Java Training Institute Chennai

Your good knowledge and kindness in playing with all the pieces were very useful. I don’t know what I would have done if I had not encountered such a step like this.
Hadoop Training Institute In chennai

amazon-web-services-training-institute-in-chennai

Those guidelines additionally worked to become a good way to recognize that other people online have the identical fervor like mine to grasp great deal more around this condition
Best RPA Training in Chennai

Best RPA Training in Bangalore

I believe there are many more pleasurable opportunities ahead for individuals that looked at your site.
google-cloud-platform-training-in-chennai


Thanks for one marvelous posting! I enjoyed reading it; you are a great author. I will make sure to bookmark your blog and may come back someday. I want to encourage that you continue your great posts, have a nice weekend! Advance Digital Marketing Training in chennai– 100% Job Guarantee
digital marketing jobs career opportunities in abroad

Your good knowledge and kindness in playing with all the pieces were very useful. I don’t know what I would have done if I had not encountered such a step like this.

Amazon Web Services Training in Chennai

Best Java Training Institute Chennai

I believe there are many more pleasurable opportunities ahead for individuals that looked at your site.

Best Java Training Institute Chennai


Amazon Web Services Training in Chennai



Ciitnoida provides Core and java training institute in

noida
. We have a team of experienced Java professionals who help our students learn Java with the help of Live Base Projects. The object-

oriented, java training in noida , class-based build

of Java has made it one of most popular programming languages and the demand of professionals with certification in Advance Java training is at an

all-time high not just in India but foreign countries too.

By helping our students understand the fundamentals and Advance concepts of Java, we prepare them for a successful programming career. With over 13

years of sound experience, we have successfully trained hundreds of students in Noida and have been able to turn ourselves into an institute for best

Java training in Noida.

java training institute in noida
java training in noida

I wish to show thanks to you just for bailing me out of this particular trouble.As a result of checking through the net and meeting techniques that were not productive, I thought my life was done.
datascience training in chennai

Database Management System Latest Technology Information Latest Technology Information The website Provide Database Management System includes, Besides Theoretical Portion, Complete Articles on SQL and MS Access so that the readers may get a practical knowledge of databases.


http://itused.net

Post a Comment

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites More