Multiple Choice
In the following code that uses a Swing GUI, which line has an error?
1 public class TestApplet extends Applet
2 {
3 public void init()
4 {
5 JLabel label = new JLabel("Test label") ;
6 setLayout(new FlowLayout() ) ;
7 add(label) ;
8 }
9 }
A) 1
B) 3
C) 5
D) There are no errors.
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q2: An applet using a Swing GUI is
Q3: What does the tag <p /> cause
Q4: HTML describes the content and layout of
Q5: Which of the following sound file formats
Q6: Which of the following will load the
Q8: When someone visits a Web page containing
Q9: These are Java programs that are usually
Q10: If a frame component is 300 pixels
Q11: What will happen if you use </CENTER>
Q12: Look at the following applet code:<br>1 import