What are the methods in Applet ?

What are the methods in Applet ?

An applet life cycle contains the following methods:*init()*start()*stop()*destroy()Besides these your applet can implement the paint() method.


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

import java.applet.Applet; import java.awt.Graphics; public class HelloWorld extends Applet { public void paint(Graphics g) { g.drawString(\"Hello world!\", 50, 100); } }

Date:2011-01-09 00:00:00

Post Your Answers

User Email:

User Name:

Related Java Subjective Links

Java Subjective interview questions and answers for experienced and fresher