0 votes
in JAVA by
What is applet in java?

2 Answers

0 votes
by

What is applet in java?

An applet is a special kind of Java program that runs in a Java-enabled browser. This is the first Java program that can run over the network using the browser. An applet is typically embedded inside a web page and runs in the browser.

In other words, we can say that Applets are small Java applications that can be accessed on an Internet server, transported over the Internet, and can be automatically installed and run as apart of a web document.

0 votes
by
An applet is a small java program that runs inside the browser and generates dynamic content. It is embedded in the webpage and runs on the client side. It is secured and takes less response time. It can be executed by browsers running under many platforms, including Linux, Windows, Mac Os, etc. However, the plugins are required at the client browser to execute the applet. The following image shows the architecture of Applet.

hierarchy of applet

When an applet is created, the following methods are invoked in order.

init()

start()

paint()

When an applet is destroyed, the following functions are invoked in order.

stop()

destroy()

Related questions

0 votes
0 votes
asked Jul 1, 2023 in JAVA by sharadyadav1986
+2 votes
asked Jul 27, 2021 in JAVA by SakshiSharma
...