Java Programming Questions and Answers
Showing 1 -
10 of
11 questions
1
Which method is called first by an applet?
2
To display text on the applet........method is used.
3
To run an applet..........command is used.
4
AppletViewer tool is available in which of the folder of JDK :
5
To display text in the applet status bar.........method is used
6
which of the following is an optional attribute of applet tag?
7
which package contains color class?
8
The constructor for Font class is.............
b
Font(string name,int style,int size)
c
Font(String name,int size)
d
Font(String name,int style)
9
The syntax of paint()method is.............
b
public void paint(String s)
c
public void paint(Graphics g)
d
public void paint(Graphics g,String s)
10
The(0,0) coordinates of applet window is located at......
a
at the center of the applet
b
at the center of the right edge of the applet
c
at the center of the left edge of the applet
d
at the upper-left corner of the applet