Programming Blog

This blog is about technical and programming questions and there solutions. I also cover programs that were asked in various interviews, it will help you to crack the coding round of various interviews

Saturday 13 January 2018

Java applet

                     Java Applet

 An applet is a program that runs in a Web browser. An applet can be a fully functional Java application because it has full Java API at its disposal.


                    Example

import java.applet.*;
import java.awt.*;
public class HelloWorldApplet extends Applet
{
public void paint (Graphics g)
{
g.drawString ("Hello World", 25, 50);//25 and 50 is height and width for applet window
}
}

No comments:

Post a Comment