Explain significance of init() & destroy( ) method of applet, Computer Engineering

Assignment Help:

Explain the significance of init() and destroy( ) methods of an applet? Also explain two ways of invoking an applet.

The init( ) method is utilized for fundamental initialization in the applet. This is executed only once throughout the life time of the applet. It is the first method to be invoked while applet is started.

The destroy( ) method is utilized to clear the space from the memory while applet is stopped final ly.

Two ways are there to invoke an applet

  • Executing the applet inside a java compatible web browser or
  • By using an Applet viewer

In a web browser, to execute an applet a short HTML text file is written.

The HTML file to execute SimpleApplet is as follows:

< applet code = "SimpleApplet" width =200 height =60>

The height and width specifies the dimensions of the display area utilized.

To execute SimpleApplet with an applet viewer we will execute HTML file demonstrated above. For illustration if preceding HTML file is termed as app.HTML then the following command will execute a SimpleApplet:

C: \< appletviewer app.HTML


Related Discussions:- Explain significance of init() & destroy( ) method of applet

What is swimlane, What is swimlane? In business model, it is often help...

What is swimlane? In business model, it is often helpful to know which human organization is responsible for activity. Show the partition of activities into columns and lines.

Example of prolog, Example of Prolog: We can say that this is also tru...

Example of Prolog: We can say that this is also true if there are four even numbers. Now we have our first rule: • If there are three or four even numbered cards, such play

Discuss the advantages of store program control, Discuss the advantages of ...

Discuss the advantages of store program control (SPC) automation in telephone switching. Advantages of SPC: (i) Simple to control (ii) Simple to maintain (iii) Fine-

Determine frame time and propagation time in a lan, Maximum channel utiliza...

Maximum channel utilization in a LAN is defined by frame time (t f ) and propagation time (t p ). It is defined by (A) t p /t f (B) t f /t p  (C) 1 + (t f /t p )

Compiling and running the pvm program, Now we will learn how to compile and...

Now we will learn how to compile and run PVM programs. To compile the program change to directory pvm/lib/archname where archname is architecture name of your computer. Then the su

Modified digital clock, can you deign the schematic of a modified digital c...

can you deign the schematic of a modified digital clock at the gate as well as the IC level and then construct the circuit, lab spec and industral spec?

Explain characteristics in java for e-commerce applications, Explain the ch...

Explain the characteristics and utilities available into java that makes it appropriate for developing e-commerce applications. Following are the characteristics and utilities

Explain a binary semaphore, Explain a binary semaphore with the help of an ...

Explain a binary semaphore with the help of an example? An abstract data type (ADT) is a semaphore which defines a nonnegative integer variable that apart from initialization i

How can server communicate with more than one client, Server can interact w...

Server can interact with more than one client with using threading concepts there are java threads which are allocated to each client when he logs in to server, the thread handles

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