+ 4

What are applets in java ?

details about applet and if possible please send code also

31st Oct 2017, 6:50 PM
Gourav raghuwanshi
Gourav raghuwanshi - avatar
4 Antworten
+ 5
thanks @vipul
31st Oct 2017, 6:58 PM
Gourav raghuwanshi
Gourav raghuwanshi - avatar
+ 3
An applet is a Java program that runs in a Web browser. An applet can be a fully functional Java application because it has the entire Java API at its disposal. A "Hello, World" Applet Following is a simple applet named HelloWorldApplet.java − import java.applet.*; import java.awt.*; public class HelloWorldApplet extends Applet { public void paint (Graphics g) { g.drawString ("Hello World", 25, 50); } } These import statements bring the classes into the scope of our applet class − java.applet.Appletjava.awt.Graphics Without those import statements, the Java compiler would not recognize the classes Applet and Graphics, which the applet class refers to.
31st Oct 2017, 6:57 PM
Vipul Walia
Vipul Walia - avatar
+ 2
I hope i helped. Happy Coding 😊
31st Oct 2017, 7:00 PM
Vipul Walia
Vipul Walia - avatar
+ 1
Did you googled it before asking here ?
31st Oct 2017, 6:51 PM
Vipul Walia
Vipul Walia - avatar