21.  What is the Message is displayed in the applet made by this program ?
import java.awt.*;
import java.applet.*;
public class myapplet extends Applet {
public void paint(Graphics g) {
g.drawString(‘’PrintExam’’, 20, 20);
}
}


PrintExam
PrintExam 20 20
Compilation time Error
Runtime Error


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

22.  The syntax of paint() method is _____________


public void paint()
public void paint(String s)
public void paint(Graphics g)
public void paint(Graphics g, String s)


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

23.  An applet can play an audio file represented by the AudioClip interface in the java,applet package Causes the audio clip to replay continually in which method ?


public void play()
public void loop()
public void stop()
None of the above


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

24.  To display text in the applet status bar _________ method is used.


showStatus()
showStatusBar()
drawStatus()
drawStatusBar()


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

25.  Which method is called only once during the run time of your applet ?


stop()
paint()
init()
destroy()


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report