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

What are application softwares, What are application softwares? List down t...

What are application softwares? List down the names of three application software's. Definition: Application Software are in which software then can interact directory along

Difference between a scrollbar and a scrollpanel in jsp, A Scrollbar is a C...

A Scrollbar is a Component while Scroll Panel is a Container. A Scroll Panel handles its own events and performs its own scrolling.

Program to brute force search, Ask questionWrite a program BruteForceSearch...

Ask questionWrite a program BruteForceSearch that uses the brute-force approach given above and compare its running time on your computer with that of Binary Search for largeW.txt

Basic difference b/w finalize(), 1.   final - it is a constant declarati...

1.   final - it is a constant declaration. 2.   finally - handles exception. The finally block is optional and gives a mechanism to clean up regardless of what occurs within

Coarse grained soa, Coarse Grained SOA : Services are also could be coa...

Coarse Grained SOA : Services are also could be coarse grained. E.g:   You may have a purchase element with individual functions to make a purchase order, add line items, and a

Describe features of spring, Here are some features of spring:- ? Lightw...

Here are some features of spring:- ? Lightweight: spring is lightweight when it comes to size and transparency. The essential version of spring framework is around 1MB. And t

War file for your application that can be deployed on tomcat, Deliverable: ...

Deliverable:  1) WAR file for your application that can be deployed and run on TomcaT (War file must contains the Java source code) Requirement for application: 1. Application m

Create a generic class with a type parameter, 1. The purpose of this proble...

1. The purpose of this problem is to practice using generics.  Create a generic class with a type parameter that simulates drawing an item at random out of a box. For exampl

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