678
3.Because applets do not have a mainmethod, where does execution begin?
4.From which class must your applet be derived?
5.Why do we not need to instantiate a Frameor JFramewith an applet?
6.Why do you not need to append an object name to add components to the win-
dow?
7.What happens when an intvariable overflows in Java?
8.What distinguishes a Swing component from an AWT component?
9.How do you run an applet?
10.What is HTML?
11.What is a markup language?
12.What is a tag?
13.What is the HTML tag that encloses a Web page?
14.What does <P>...</P>enclose?
15.Distinguish between the Internet and the Web.
16.Describe what happens when you enter a URL in your browser.
17.Distinguish between a LAN and a WAN.
Programming Warm-Up Exercises
1.Write the Java statement that provides access to the Appletclass.
2.Write the class heading for an applet class named Sorts.
3.For the applet of Exercise 2, write the statements that declare, instantiate, and
place a text field into the window.
4.For the applet of Exercise 2, write the statements that declare, instantiate, and
place into the window a label with the phrase: “Enter a real number between
0.0 and 1.99”.
5.For the applet of Exercise 2, write the statements that declare, instantiate, and
place a button object into the window.
6.Write the statement that registers a listener with the button of Exercise 5.
7.For the applet of Exercise 2, write the statement that sets the layout of the win-
dow.
8.Write the HTML tags that must appear in a Web page to execute the following
applets:
a.Sorts
b.Search
c. Calculator