0% found this document useful (0 votes)
3 views2 pages

Septemberoctober 2023 (Java)

This document is an examination paper for B. Tech II Year II Semester students at Jawaharlal Nehru Technological University Hyderabad, focusing on Object Oriented Programming using Java. It consists of two parts: Part A, which is compulsory and carries 25 marks, and Part B, where students must answer one question from each unit, totaling 50 marks. The paper includes various topics such as method binding, abstract classes, multitasking, exception handling, and Java programming tasks.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views2 pages

Septemberoctober 2023 (Java)

This document is an examination paper for B. Tech II Year II Semester students at Jawaharlal Nehru Technological University Hyderabad, focusing on Object Oriented Programming using Java. It consists of two parts: Part A, which is compulsory and carries 25 marks, and Part B, where students must answer one question from each unit, totaling 50 marks. The paper includes various topics such as method binding, abstract classes, multitasking, exception handling, and Java programming tasks.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Code No: 154CE R18

JN
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
B. Tech II Year II Semester Examinations, September/October - 2023
OBJECT ORIENTED PROGRAMMING USING JAVA
(Computer Science and Engineering (Artificial Intelligence and Machine Learning))
TU
Time: 3 Hours Max. Marks: 75

Note: i) Question paper consists of Part A, Part B.


ii) Part A is compulsory, which carries 25 marks. In Part A, answer all questions.
H
iii) In Part B, Answer any one question from each unit. Each question carries 10 marks
and may have a, b as sub questions.
U
PART – A
(25 Marks)
SE
1.a) What do you mean by method binding? [2]
b) Define abstract class with example. [3]
c) List out the Byte stream classes. [2]
d) How to import a package in Java? [3]
D
e) Differentiate between thread-based and process based multitasking. [2]
f) How uncaught exceptions are handled in Java? [3]
g) What is meant by a Priority Queue? [2]
PA
h) How to convert an ArrayList into an array? [3]
i) List the security issues while using applets. [2]
j) Distinguish between Applets and Applications. [3]
PE
PART – B
(50 Marks)

2.a) Distinguish between Adhoc polymorphism and pure polymorphism.


R
b) Develop a program in Java that reads values from keyboard into a two-dimensional array.
Create two one - dimensional arrays that contains row and column averages. [5+5]
S-
OR
3.a) Illustrate with a Java program, the multilevel inheritance with constructors.
b) Discuss about string handling methods. [5+5]
2
4.a) Describe the methods used for random access file operations.
02
b) Explain about Nested interfaces with examples. [5+5]
OR
5.a) Explain about Extending interface with example program.
3
b) Write a Java program to implement stacks using generics. [5+5]

6.a) Distinguish between throw and throws keywords with a Java program.
b) Design a Java program using multiple catch clauses. [5+5]
OR
7.a) Explain about inter thread communication.
b) Design a Java program using nested try statements. [5+5]
JN
8.a) Write a Java program to sort the names of employees alphabetically using Array List.
b) Explain about Calendar class. [5+5]
OR
9.a) Demonstrate the Stack class with a Java program.
TU
b) Using comparator, develop program to set the elements of Tree Set in descending order?
[5+5]

10.a) Develop swing application to demonstrate event handling?


H
b) Explain about Grid Layout? [5+5]
OR
11.a) Differentiate between checkbox and radio button, write a program using them.
U
b) What is the importance of Adapter classes? List out the adapter classes and which class
implements which interface(s). [5+5]
SE

---ooOoo---
D
PA
PE
R
S-
2 02
3

You might also like