Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
57 views

Java Programming Dec - Jan-2023

au mid paper

Uploaded by

TEJASWI
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
57 views

Java Programming Dec - Jan-2023

au mid paper

Uploaded by

TEJASWI
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

R20

QP Code: R20A21AI01

Anurag University
II-B Tech I-Semester Regular & Supplementary Examinations, Dec-2022/Jan-2023
Course: Java Programming
(Common to AI & AIML)

Time: 3 Hours Max Marks: 60


Section –A (Short Answer type questions)
 Answer all questions: (10 x 2 =20 Marks)
1. Describe scope and lifetime of variables?
2. Define recursion?
3. What is an inheritance? List different types of inheritance.
4. Difference between interfaces vs. Abstract classes?
5. How many ways can thread be Created?
6. Tell the benefit of Java’s multithreading?
7. Describe the relationship between Event sources and Listeners?
8. Explain AWT class hierarchy?
9. Define delegation event model.
10. Write difference between java applet program and java application program.

Section—B (Essay Answer type questions)


 Answer all questions: (5 x 8 =40 Marks)
11. A) Explain about the features of Java and Write the structure of a Java program 8M
OR
B) Write about overloading methods and constructors with an example. 8M

12. A) Classify different types of inheritance. How multiple inheritance can be implemented
in java? 8M
OR
B) i) Explain working procedure of CLASSPATH? 4M
ii) Define Byte streams and Character streams? Explain with example 4M

13. A) Define Exception? Write a sample program to handle an Exception with multiple
catch blocks. 8M
OR
B) i) Summarize life cycle of a Thread. 4M
ii) Write a program to illustrate suspend and resume methods. 4M

14. A) i) Write a program for handling mouse events? 4M


ii) Describe which containers use a border Layout as their default layout? 4M
OR
B) Write in detail about Events, Event sources and Event classes? 8M

15. A) Explain about applet life cycle with a neat diagram 8M


OR
B) Summarize types of JDBC drivers? 8M

You might also like