Label is read only text and is used to display captions on frames, applets etc.

Java Code:
import java.applet.*;    
import java.awt.*;
 
public class HelloWorld extends Applet {
 
  public void init() {
    Label label;
    label = new Label("Hello World");
    this.add(label);
  }

}