/* related posts with thumb nails */


1. What are Applets?

Applet is a special type of Java program that is used in web applications and can be used to handle client-side validations. Browsers are required for their execution. Applets allow event-driven programming.

2. What are the types of Applets?

1. Local Applets: A local applet is the one that is stored on our own computer system.

2. Remote Applets: A remote applet is the one that is located on a remote computer system.

3. What is tag? What is the syntax of applet tag?

Applets are embedded in HTML documents with the tag. Any number of tags can be embedded in a single HTML file. The syntax of applet tag is:

[attribute=value] .. >

[name=parameter-name value=“param-value”>]

[name=parameter-name value=“param-value”>]


4. What are the attributes of the applet tag?

The following are the attributes of the applet tag. These attributes are like options when embedding applets.

CODEBASE (codebaseURL)

ARCHIVE (archiveList)

CODE (appletFile)

ALT (alternateText)

NAME (appletInstanceName)

WIDTH, HEIGHT (in pixels)

ALIGN (alignment)

VSPACE, HSPACE (in pixels)

5. Explain Life-cycle of Applets.

1) New Born state

2) Running state

3) Idle state

4) Dead or Destroyed state

6. How do you pass parameters to applets?

The param tag is used within an tag pair to pass input as parameters to an applet. Any number of parameters can be added to define a set constituting of name and value.

7. Explain how applets differ from applications.

Applets do not use the main() method for initiating the execution of the code.

Unlike stand-alone applications, applets cannot be run independently. They are run from inside a Web page.

Applets cannot read from or write to the files in the local computer.

Applets cannot communicate with other servers on the network.

Applets cannot run any program from the local computer.

Applets are restricted from using libraries from other languages such as C or C++.

Applets support event-driven programming i.e. program runs as per the events triggered.

Applets support coordinating system.

Applets are meant for web based applications.

All applets are subclasses of “Applet” class.

8. What are HTML tags?

HTML stands for Hyper Text Markup Language. It is not a programming language but a formatting language. Tags are elements of HTML pages that allow us to specify different formatting options. Most of the tags take the following syntax: .

Related Topics:


Post a Comment