JNTU

JNTU B.Tech III JAVA PROGRAMMING Previous Question Paper (March - 2024 - R16)

B.Tech | III | II | R16 | March - 2024

Answer PaperPaper Code: 136FMMaximum 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

Differentiate between break and continue statement.

2 marks

Answer

The break statement terminates the entire loop or switch block immediately, whereas the continue statement skips the remaining code in the current iteration and forces the next iteration of the loop to begin.

b

What is Default Constructor and Parameterized constructor? When does java automatically supply default constructor?

3 marks

Answer

A default constructor is a no-argument constructor provided to initialize objects with default values. A parameterized constructor accepts arguments to initialize an object with specific values. Java automatically supplies a default constructor only when no other constructor is explicitly defined in the class.

c

What is the use of anonymous inner class?

2 marks

Answer

Sign in to view the complete answer paper.

d

Compare and contrast abstract classes and interfaces.

3 marks

Answer

Sign in to view the complete answer paper.

e

What are the various thread states?

2 marks

Answer

Sign in to view the complete answer paper.

f

List five common examples of exceptions.

3 marks

Answer

Sign in to view the complete answer paper.

g

What is the need of JDBC type 3, type 4 drivers?

2 marks

Answer

Sign in to view the complete answer paper.

h

List the benefits of the Java collections framework

3 marks

Answer

Sign in to view the complete answer paper.

i

Give the hierarchy for swing components?

2 marks

Answer

Sign in to view the complete answer paper.

j

Compare Applets with application programs.

3 marks

Answer

Sign in to view the complete answer paper.

Part B

210 marks
a

Describe the various operators in Java and the operator hierarchy.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write a program to generate the Fibonacci series using recursion.

5 marks

Answer

Sign in to view the complete answer paper.

OR
310 marks
a

Explain the concept of classes, objects and methods in OOP.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write notes on String class.

5 marks

Answer

Sign in to view the complete answer paper.

410 marks
a

Demonstrate the abstract classes and methods.

5 marks

Answer

Sign in to view the complete answer paper.

b

Illustrate the concept of dynamic binding.

5 marks

Answer

Sign in to view the complete answer paper.

OR
510 marks
a

Describe the levels of access protection available for packages.

5 marks

Answer

Sign in to view the complete answer paper.

b

Justify the concept of variables in interfaces and extending interfaces with example code.

5 marks

Answer

Sign in to view the complete answer paper.

610 marks
a

Describe the concept of interrupting threads.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write a program to illustrate user defined exception that checks the internal and external marks if the internal marks are greater than 40 it raise the exception “internal marks are exceed”, if the external marks are greater than 60 exception is raised and display the message the “external marks are exceed.”

5 marks

Answer

Sign in to view the complete answer paper.

OR
710 marks
a

How to create a thread using Runnable interface?

5 marks

Answer

Sign in to view the complete answer paper.

b

Develop a program that includes a try block and a catch clause which processes the arithmetic exception generated by division-by-zero error.

5 marks

Answer

Sign in to view the complete answer paper.

810 marks
a

Write Java program to demonstrate various Vector operations.

5 marks

Answer

Sign in to view the complete answer paper.

b

What support is provided by File class for file management?

5 marks

Answer

Sign in to view the complete answer paper.

OR
910 marks
a

Write a program to convert an ArrayList into an array and vice-versa.

5 marks

Answer

Sign in to view the complete answer paper.

b

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

1010 marks
a

What is the role of event listeners in event handling? List the Java event listeners.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write an applet to display the mouse cursor position in that applet window.

5 marks

Answer

Sign in to view the complete answer paper.

OR
1110 marks
a

Write an applet program to handle all mouse events.

5 marks

Answer

Sign in to view the complete answer paper.

b

What is the significance of layout managers? Discuss briefly various layout managers.

5 marks

Answer

Sign in to view the complete answer paper.

About this paper

This page contains the solved question paper with answers of JAVA PROGRAMMING from JNTU for B.Tech ME III II, March - 2024, R16.

For the question paper without answers, switch to the Question Paper tab.

Other papers in JAVA PROGRAMMING

Loading Question Papers

Fetching data from database...