Jawaharlal Nehru Technological University Hyderabad

Jawaharlal Nehru Technological University Hyderabad B.Tech II OBJECT ORIENTED PROGRAMMING THROUGH JAVA Previous Question Paper (April/May - 2023 - R16)

B.Tech | II | I | R16 | April/May - 2023

Answer PaperPaper Code: 133BMMaximum Marks: 75Time: 3 Hours

i) Question paper consists of Part A, Part B.
ii) Part A is compulsory, which carries 25 marks. In Part A, Answer all questions.
iii) In Part B, Answer any one question from each unit. Each question carries 10 marks and may have a, b as sub questions.

PART - A

125 marks
a

What is an Object? How to allocate memory for objects?

2 marks

Answer

An object is a real-world entity that has state (data) and behavior (methods). Memory is allocated for objects on the heap using the new keyword, which dynamically allocates memory at runtime and returns a reference to that memory location.

b

Explain why Java is Machine Independent.

3 marks

Answer

Java is machine-independent because it compiles source code into Bytecode, an intermediate representation. This bytecode is executed by the Java Virtual Machine (JVM), which acts as a platform-specific interpreter or JIT compiler, allowing the same compiled code to run on any device with a compatible JVM.

c

Compare interface and abstract class.

2 marks

Answer

Sign in to view the complete answer paper.

d

What is a package? How to define it and access it?

3 marks

Answer

Sign in to view the complete answer paper.

e

How does Java support inter thread communication?

2 marks

Answer

Sign in to view the complete answer paper.

f

What keywords are essential in handling user-defined exception?

3 marks

Answer

Sign in to view the complete answer paper.

g

What is tree set class?

2 marks

Answer

Sign in to view the complete answer paper.

h

What is the use of Iterator class?

3 marks

Answer

Sign in to view the complete answer paper.

i

Explain about JCombo box.

2 marks

Answer

Sign in to view the complete answer paper.

j

Give an overview of JButton class.

3 marks

Answer

Sign in to view the complete answer paper.

PART - B

2

Discuss the drawbacks of procedural languages and explain the need of object oriented programming with suitable program.

10 marks

Answer

Sign in to view the complete answer paper.

OR
310 marks
a

Explain the importance of constructor.

5 marks

Answer

Sign in to view the complete answer paper.

b

Is Java a robust language? Justify your answer.

5 marks

Answer

Sign in to view the complete answer paper.

410 marks
a

Identify the relationship between classes and interfaces.

5 marks

Answer

Sign in to view the complete answer paper.

b

Distinguish between byte streams and character streams.

5 marks

Answer

Sign in to view the complete answer paper.

OR
510 marks
a

Discuss how to define and import a package? Explain with an example.

5 marks

Answer

Sign in to view the complete answer paper.

b

What is auto boxing? Explain.

5 marks

Answer

Sign in to view the complete answer paper.

610 marks
a

Describe producer-consumer pattern using inter-thread communication

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain the concept of java built in exceptions with an example.

5 marks

Answer

Sign in to view the complete answer paper.

OR
710 marks
a

What is meant by re-throwing exception? Discuss a suitable scenario for this.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write a program that demonstrate the priority setting in threads.

5 marks

Answer

Sign in to view the complete answer paper.

810 marks
a

Write a program to store the names of bank depositors and their current balances by using hash table.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain the implementation of priority queue in java.

5 marks

Answer

Sign in to view the complete answer paper.

OR
910 marks
a

Write a program which stores a list of strings in an Array List and then displays the contents of the list.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain various interfaces used in Collection framework?

5 marks

Answer

Sign in to view the complete answer paper.

1010 marks
a

Explain procedure to handle mouse events in Java with an example program.

5 marks

Answer

Sign in to view the complete answer paper.

b

Illustrate in detail about the various layout managers used in Java?

5 marks

Answer

Sign in to view the complete answer paper.

OR
1110 marks
a

Write a java program to design a scientific calculator using AWT.

5 marks

Answer

Sign in to view the complete answer paper.

b

Describe in detail about the various event listener interfaces.

5 marks

Answer

Sign in to view the complete answer paper.

About this paper

This page contains the question paper of OBJECT ORIENTED PROGRAMMING THROUGH JAVA from Jawaharlal Nehru Technological University Hyderabad for B.Tech IT II I, April/May - 2023, R16.

For the solved question paper with answers, switch to the Answer Paper tab.

Other papers in OBJECT ORIENTED PROGRAMMING THROUGH JAVA

Loading Question Papers

Fetching data from database...