Java Applet Program to demonstrate Applet Life Cycle methods

Write a Java applet program to demonstrate applet life cycle methods.

Source Code
import java.applet.Applet;
import java.awt.Graphics;

public class SampleApplet extends Applet {
	public void init() {
		System.out.println("In init() method");
	public void start() {
		System.out.println("In start() method");
	public void paint(Graphics g) {
		System.out.println("In paint() method");
	public void stop() {
		System.out.println("In stop() method");
	public void destroy() {
		System.out.println("In destroy() method");
<applet height=600 width=600 code=SampleApplet>

"Coding Hub - Learn to code" app now available on Google Play Store