Solved

In the Following Code That Uses a Swing GUI, Which

Question 7

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions