In the following code, which line has an error?
1 public class TestApplet extends JApplet
2 {
3 public void init()
4 {
5 super.JApplet();
6 JLabel label = new JLabel("Test label");
7 setLayout(new FlowLayout());
8 add(label);
9 }
10 }
A) 1
B) 3
C) 5
D) There are no errors
C) 5
Computer Science & Information Technology
You might also like to view...
MC Which of the following events is triggered when the Ctrl, Alt and W keys are pressed simultaneously?
a)
Computer Science & Information Technology
A splash screen can be used to make a program appear to load faster than it actually does. _________________________
Answer the following statement true (T) or false (F)
Computer Science & Information Technology