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
You might also like to view...
Write a single statement that computes and prints the absolute value of total.
What will be an ideal response?
Which of the following statements are true?
1. if obj1.equals(obj2) then obj1.hashcode() == obj2.hashcode() 2. if !obj1.equals(obj2) then obj1.hashcode() != obj2.hashcode() a. 1 b. 2 c. both d. none
PKI verifies a requester's identity by assigning a(n) ____ to a user for authentication into secure environments.
A. digital certificate B. password C. username D. authentication code
IPSec usually provides the security for this type of VPN.
A. PPTP B. PPP C. L2TP D. VLAN