Describe methods of basic applet life cycle, JAVA Programming

Assignment Help:

Describe methods of Basic Applet Life Cycle ?

All applets have the subsequent four methods:
public void init();
public void start();
public void stop();
public void destroy();
They have these methods since their superclass, java.applet.Applet, has these methods. (It has others too, but right now I just want to talk about these four.)

In the superclass, these are simply do-nothing methods. For instance,
public void init() {}
Subclasses may override these techniques to accomplish certain tasks at certain times. For example, the init() method is a good place to read parameters that were passed to the applet via tags because it's called exactly once when the applet begin up. Therefore, they do not have to override them. Since they're declared in the superclass, the Web browser can invoke them when it requires to without knowing in advance whether the method is implemented in the superclass or the subclass. This is a excellent example of polymorphism.


Related Discussions:- Describe methods of basic applet life cycle

State about the performance of java, State about the performance of java ...

State about the performance of java First versions of java were pretty slow. Java performance has gotten a lot better with aggressive just-in-time-compiler (JIT) techniques

Oop, creating a point of sale

creating a point of sale

Describe validate() and reset() methods, Validate() : Used to validate prop...

Validate() : Used to validate properties after they have been populated; known as before FormBean is handed to Action. Returns a collection of ActionError as ActionErrors. Followin

Extraction of articles, Extraction of articles The software I'm looking ...

Extraction of articles The software I'm looking to build: 1. Extraction of articles from various sites 2. Format the content to re-post 3. Automate the process Skill

Password Generator Software, In this exercise, I want you to generate passw...

In this exercise, I want you to generate password based on random number generator. Develop an application that keeps track of the URL, username and password. I have listed few st

How can we include images in a web page using html and java, How can we inc...

How can we include images in a web page using HTML and Java script? Image in HTML Image in Javascript Images in JavaScript could be manipulated in several ways using the buil

Describe the concept of encapsulation, Describe the concept of Encapsulatio...

Describe the concept of Encapsulation  Encapsulation is a technique which is used for hiding properties and behaviors of an object and allowing outside access only as appropria

I want five page website design, I want five page website design Project...

I want five page website design Project Description: Five page website CMS Front end design Skills required are Graphic Design, Java, HTML, PHP, Website Design

Introduction, the multiple of two number in java

the multiple of two number in java

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd