JNTU

JNTU B.Tech III JAVA PROGRAMMING Previous Question Paper (July - 2023 - R16)

B.Tech | III | II | R16 | July - 2023

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

Define encapsulation.

2 marks

Answer

Encapsulation is the mechanism of wrapping data (variables) and the code acting on that data (methods) together as a single unit, known as a class, while restricting direct access to some of an object's components.

b

What is the use of finalize method?

3 marks

Answer

The finalize() method is called by the garbage collector on an object when garbage collection determines that there are no more references to the object. It is used to perform cleanup operations, such as closing open files or releasing system resources, before the object is reclaimed.

c

Define static inner class.

2 marks

Answer

Sign in to view the complete answer paper.

d

What is the need of CLASSPATH variable?

3 marks

Answer

Sign in to view the complete answer paper.

e

What is an exception?

2 marks

Answer

Sign in to view the complete answer paper.

f

What are the various states of a thread?

3 marks

Answer

Sign in to view the complete answer paper.

g

List the functions of Scanner class.

2 marks

Answer

Sign in to view the complete answer paper.

h

Differentiate between byte and character streams.

3 marks

Answer

Sign in to view the complete answer paper.

i

Why swing is preferred over AWT?

2 marks

Answer

Sign in to view the complete answer paper.

j

List the advantages of applets over application program.

3 marks

Answer

Sign in to view the complete answer paper.

Part B

2

Describe the basic concepts of object oriented programming with illustrations.

10 marks

Answer

Sign in to view the complete answer paper.

OR
310 marks
a

How to read input from keyboard in Java program?

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain any three methods of String class.

5 marks

Answer

Sign in to view the complete answer paper.

4

Demonstrate dynamic method dispatch concept with suitable program.

10 marks

Answer

Sign in to view the complete answer paper.

OR
510 marks
a

Write a Java program to implement multi level inheritance.

6 marks

Answer

Sign in to view the complete answer paper.

b

How to prevent inheritance in Java?

4 marks

Answer

Sign in to view the complete answer paper.

610 marks
a

Can a user defined an exception? Justify your answer.

5 marks

Answer

Sign in to view the complete answer paper.

b

Discuss the unchecked exception in Java.

5 marks

Answer

Sign in to view the complete answer paper.

OR
7

How to create multiple threads in Java program? Explain with an example program for multitasking.

10 marks

Answer

Sign in to view the complete answer paper.

8

Write a program to count the number of occurrences of a given word in a text file.

10 marks

Answer

Sign in to view the complete answer paper.

OR
9

Demonstrate the steps in connecting a database to Java program.

10 marks

Answer

Sign in to view the complete answer paper.

10

What is an event? What is meant by event sources? How events are handled in Java programming.

10 marks

Answer

Sign in to view the complete answer paper.

OR
1110 marks
a

Illustrate parameter passing to applet.

5 marks

Answer

Sign in to view the complete answer paper.

b

Discuss grid layout with applications.

5 marks

Answer

Sign in to view the complete answer paper.

About this paper

This page contains the question paper of JAVA PROGRAMMING from JNTU for B.Tech CE III II, July - 2023, R16.

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

Other papers in JAVA PROGRAMMING

Loading Question Papers

Fetching data from database...