JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD

JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD B.Tech II Year OBJECT ORIENTED PROGRAMMING THROUGH JAVA Previous Question Paper (February - 2024 - R16)

B.Tech | II Year | I Semester | R16 | February - 2024

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

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. 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

Identify the differences between Classes and Instances.

2 marks

Answer

A class is a blueprint or template that defines the properties and behaviors of objects, whereas an instance (object) is a concrete realization of that class created in memory. A class is declared once, while multiple instances can be created from a single class, each maintaining its own state.

b

Explain the need of Constructors?

3 marks

Answer

Constructors are special methods used to initialize objects at the time of their creation. They ensure that an object starts in a valid state by assigning initial values to instance variables, thereby preventing the use of uninitialized data and enforcing encapsulation requirements.

c

Discuss the concept of Packages.

2 marks

Answer

Sign in to view the complete answer paper.

d

Describe the generics with examples.

3 marks

Answer

Sign in to view the complete answer paper.

e

Explain the need of Multithreading.

2 marks

Answer

Sign in to view the complete answer paper.

f

List the thread priorities with examples.

3 marks

Answer

Sign in to view the complete answer paper.

g

Write a short note on String Tokenizer.

2 marks

Answer

Sign in to view the complete answer paper.

h

Explain the Collection algorithms.

3 marks

Answer

Sign in to view the complete answer paper.

i

Explore GUI Programming with Swing.

2 marks

Answer

Sign in to view the complete answer paper.

j

Describe the Event Handling in detail.

3 marks

Answer

Sign in to view the complete answer paper.

Part B

210 marks
a

Can you demonstrate how the principles of object-oriented thinking can be applied to solve a real-world problem?

5 marks

Answer

Sign in to view the complete answer paper.

b

Using Java, can you implement a practical example of method overriding to demonstrate polymorphic behavior?

5 marks

Answer

Sign in to view the complete answer paper.

OR
310 marks
a

Can you create a multilevel class hierarchy in Java to model a system with different levels of abstraction?

5 marks

Answer

Sign in to view the complete answer paper.

b

Given a scenario, can you propose a solution that leverages Java's inheritance concepts to optimize code structure?

5 marks

Answer

Sign in to view the complete answer paper.

4

Write a Program to demonstrate how to create a package and use it in another class.

10 marks

Answer

Sign in to view the complete answer paper.

OR
510 marks
a

Give an Example to demonstrate the extension of interfaces in Java.

5 marks

Answer

Sign in to view the complete answer paper.

b

Demonstrate Enumerations and Auto Boxing in Java.

5 marks

Answer

Sign in to view the complete answer paper.

610 marks
a

Analyze the impact of not using exception handling in a program. How does it affect the overall program flow and user experience?

5 marks

Answer

Sign in to view the complete answer paper.

b

Analyze the advantages and disadvantages of thread-based multitasking compared to process-based multitasking. In what scenarios is one more suitable than the other?

5 marks

Answer

Sign in to view the complete answer paper.

OR
710 marks
a

Evaluate the role of throw, throws, and finally in exception handling. How do these constructs contribute to robust error management in a program?

5 marks

Answer

Sign in to view the complete answer paper.

b

Evaluate the use of wait() and notify() for inter-thread communication. How do these mechanisms contribute to effective coordination between threads?

5 marks

Answer

Sign in to view the complete answer paper.

8

Analyze the use of utility classes in complex data processing scenarios. How can these classes contribute to code readability and maintainability, and are there any trade-offs associated with their usage?

10 marks

Answer

Sign in to view the complete answer paper.

OR
910 marks
a

Critically evaluate the design choices made in the definition of collection interfaces. How do these choices contribute to the flexibility and extensibility of the Collections Framework?

5 marks

Answer

Sign in to view the complete answer paper.

b

Analyze the impact of using for-each loops on code readability and maintainability. How does this alternative contribute to or hinder the expressiveness of the code?

5 marks

Answer

Sign in to view the complete answer paper.

10

Propose a comprehensive comparison between AWT and Swing, considering not only their limitations but also their strengths. Formulate recommendations for situations where AWT might still be preferable.

10 marks

Answer

Sign in to view the complete answer paper.

OR
11

Synthesize a strategy for handling simultaneous mouse and keyboard events in a Swing application. Propose solutions for scenarios where efficient handling of multiple input sources is crucial.

10 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 CSD II Year I Semester, February - 2024, 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...