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

Java Paper

This document outlines the chapters and topics covered in a Java programming course, including introductions to Java, applets, and servlets. Chapter 1 discusses Java features, differences from C++, data types, arrays, strings, classes, inheritance, exceptions, and multithreading. Chapter 2 covers applets, applet classes, events, drawing, and AWT controls. Chapter 3 introduces Swing components and containers for building graphical user interfaces. It also addresses servlets, handling HTTP requests and responses, the servlet lifecycle, and related API packages.

Uploaded by

shobhark
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
53 views

Java Paper

This document outlines the chapters and topics covered in a Java programming course, including introductions to Java, applets, and servlets. Chapter 1 discusses Java features, differences from C++, data types, arrays, strings, classes, inheritance, exceptions, and multithreading. Chapter 2 covers applets, applet classes, events, drawing, and AWT controls. Chapter 3 introduces Swing components and containers for building graphical user interfaces. It also addresses servlets, handling HTTP requests and responses, the servlet lifecycle, and related API packages.

Uploaded by

shobhark
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

SUBJECT: Java Programming

CHAPTER 1: Introduction to Java

05 marks

1. List and explain features of java.


2. Write the difference between C++ and java.
3. Discuss data types supported in java.
4. What are command line arguments? Write a java program to print command line arguments.
5. What are arrays in java. Explain one dimensional and two dimensional.
6. Discuss string class and its methods.
7. Describe class and instance variables.
8. What are static variable and methods?
9. Briefly explain characteristics of constructors.
10. Explain the use of this keyword in java.
11. What do you mean by inheritance? Explain its forms.
12. Write about final keyword.
13. Discuss different access modifiers supported in java.
14. What are uses of packages.
15. Discuss java API packages.
16. What is exceptional handling. Explain common exceptional types.
17. Discuss the use of throw for creating own exceptional.
18. What is multithreading.
19. Write a java code to generate and handle the following exceptions.
I. ArrayStoreException
II. ArrayIndexOutOfBoundsException

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

1. Explain various methods of applet class.


2. Briefly explain delegation event model.
3. Explain any two Event Listener interfaces
I) ActionListener II) ItemListener III) MouseListener
4. Explain applet execution steps.
5. Write applet program to display a welcome message.
6. Briefly explain methods to draw oval and rectangle.

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.

CHAPTER 3: Introduction to java foundation classes

05 marks

1. Explain swing features.


2. Explain JLabel.
3. Explain JTextfield.
4. Explain Jbutton.
5. Explain Jchechbox.
6. Explain JList.
7. Explain JOption Button.
8. Define swing and describe its key features.
9. List the various components of swing.
10. Write a note on swing components and containers.
11.

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.

CHAPTER 3: Introduction to java servlets

1. Define servlets and its advantages.


2. How to handle HTTP GET Requests.
3. How to handle HTTP POST Requests.
4.

10 marks

1. Explain the handling of HTTP Requests and Responses.


2. What are servlets?Explain servlet life cycle.
3. Explain servlet API.
4. Explain web applications.
5. Explain javax.servlet package.
6. Explain javax.servlet.http package.

You might also like