0% found this document useful (0 votes)
11 views

Revision Sheet(Unit-2, JAVA)

Java concept

Uploaded by

srkydv30
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views

Revision Sheet(Unit-2, JAVA)

Java concept

Uploaded by

srkydv30
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

5002: JAVA Programming (Unit-II) 2024

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?

11. What is Layout Manager? Define all types of Layout Manager.


12. Which method is used to specify container layout? Write it’s syntax.
13. What do you understand by events in Java? Why are the events important?
14. What is event, event source, event object and event listener?
15. Explain clearly the listener and adapter classes.
16. What are adapter class? What convenience do they provide?

17. Explain MouseListener.


18. Define Event Delegation.

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.

Archita Dubey Page 1


5002: JAVA Programming (Unit-II) 2024
2. Write a Java applet program to create national flag. Also colour it appropriately.

3. Create an applet which draw the following figure:

4. Create the following frame using the AWT components:


buttons, checkbox, checkboxgroup, label, textbox. Do not provide any functionality to the components.

5. Draw a smiley in java applet.


6. Basic Calculator program using event handling.

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)

Archita Dubey Page 2

You might also like