Java Paper
Java Paper
05 marks
20.
10marks
1. Differentiate between method overloading and method overriding. Explain each with a
program example.
2. Write down the uses of ‘super’ keyword. Illustrate with a help of program example.
3. What is interface? Discuss defining and implementing interface.
4. Write a program to illustrate multiple catch statements.
5. What are threads? Discuss the various ways in creating in which threads can be
implemented.
6. Explain states of threads.
7. Write a program to illustrate thread priorities.
CHAPTER 2: Applets
05 marks
10marks
1. Write a java Applet to display the name, age and Marital status of the person. Pass
these attributes as parameters to applet.
2. Explain the order of applet initialization. How to embed and run java Applet. Explain
with example.
3. Explain the following events and hence write the java code to implement them.
4. Explain any 3 event classes with its all constructors.
5. Explain the HTML applet tag with all its attributes.
6. Write a applet program to draw lines and polygons.
7. Write a program to display label in applet window.
8. Explain AWT controls a) text field b) buttons
9. Explain AWT controls a) checkbox b) checkboxgroup
10. Explain AWT controls a) List b) choice
11. Write a program in applet to display a pop menu.
12.
05 marks
10 marks
1. Create a simple swing based applet with two push buttons, one text box with
appropriate titles. Hence handle the associated events and display the titles in
the label or in status bar.
2.
10 marks