6.  In Applet which are common security restrictions ?


Applets can't load libraries or define native methods
An applet can't read every system property
Applets can play sounds
Both A & B


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

7.  The(0,0) coordinates of applet window is located at __________


at the center of the applet
at the center of the right edge of the applet
at the center of the left edge of the applet
at the upper-left corner of the applet


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

8.  The following example shows the creation of a
import java.applet.*;
import java.awt.*;
public class Main extends Applet{
public void paint(Graphics g){
g.drawString(‘’Welcome in Java Applet.’’,40,20);
}
}


Banner using Applet
Basic Applet
Display clock
None of the above


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

9.  Which of the following is an optional attribute of applet tag ?


Code
Name
Width
Height


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

10.  This method is used to suspend threads that don’t need to run when the applet is not visible ?


destroy()
paint()
stop()
start()


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report