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
Correct Answer:
Verified
Q8: Which tag will produce largest text?
A) <h4>Hello</h4>
B)
Q9: What does the tag <p /> cause
Q10: When someone visits a Web page containing
Q11: An HTML document is usually saved with
Q12: Look at the following applet code:
1 import
Q14: Look at the following applet code. 1
Q15: An applet using a Swing GUI extends
Q16: If a frame component is 200 pixels
Q17: Applets are important because the can be
Q18: In an HTML document, the tags:
A) instruct
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents