Revision Sheet(Unit-2, JAVA)
Revision Sheet(Unit-2, JAVA)
REVISION SHEET
Note: Following questions also include questions from previous year papers.
ELABORATE
1. Explain lifecycle of an applet. What are the basic steps of creating an applet?
2. Why do applet classes need to be declared as public?
3. Applets are considered safe to download and execute. How is this safety provided?
4. What is role of HTML in applet?
5. What is AWT?
6. Explain the class heirarchy of Abstract Window Toolkit (AWT).
7. What are the various AWT controls? Explain all of them in short.
OR
Explain different type of controls in detail that AWT supports.
8. Discuss AWT containers with example.
9. Discuss the purpose and utility of layout managers for AWT.
10. What is Layout Manager? What is the default layout for an applet, frame and panel?
DIFFERENTIATE
1. Write the difference between an applet and application in Java.
APPLET PROGRAMS
1. Write an applet that draws a variety of rectangles of different size and locations.
DEFINE IN BRIEF
(I) Applet tag (II) Applet Display methods (III) paint(), update() & repaint()
(V) AWT by inheritance and by association (VI) Passing parameters to applet (using <param> tag)