1.  Which Called when an applet begins execution, It is the first method called for any applet ?


void init()
void destroy()
boolean isActive()
None of the above


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

2.  The Syntax of drawstring() method is ___________


void drawstring(String s)
void drawstring(String s, int x, int y)
void drawstring(int x, int y, string s)
void drawstring(String x, int x)


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

3.  Which of these modifiers can be used for a variable so that it can be accessed from any thread or parts of a program ?


transient
volatile
global
No modifier is needed


Answer

 Option

The volatile modifier tells the compiler that the variable modified by volatile can be changed unexpectedly by other part of the program. Specially used in situations involving multithreading.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

4.  when an applet is terminated the following sequence of methods calls takes place ?


stop(),paint(),destroy()
destroy(),stop(),paint()
destroy(),stop()
stop(),destroy()


Answer

 Option

No answer description available for this question.

Workspace

Report
Mail id: Report Error:

Answer Workspace Report

5.  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