Jawaharlal Nehru Technological University Hyderabad

Jawaharlal Nehru Technological University Hyderabad B.Tech II JAVA PROGRAMMING Previous Question Paper (February - 2024 - R13)

B.Tech | II | II | R13 | February - 2024

Answer PaperPaper Code: 114CXMaximum 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 polymorphism and inheritance.

2 marks

Answer

Inheritance is a mechanism where one class acquires the properties and behaviors of another class. Polymorphism is the ability of an object or method to take on many forms, typically achieved through method overloading or method overriding.

b

How to cast types in expression evaluation?

3 marks

Answer

Type casting is performed using the cast operator (type) placed before the value. Widening conversions (e.g., int to double) happen automatically, while narrowing conversions (e.g., double to int) require an explicit cast, which may result in data loss.

c

What is an interface and how it differs from a class?

2 marks

Answer

Sign in to view the complete answer paper.

d

What is the significance of CLASSPATH variable?

3 marks

Answer

Sign in to view the complete answer paper.

e

List out various checked exceptions in Java.

2 marks

Answer

Sign in to view the complete answer paper.

f

How to create threads in Java?

3 marks

Answer

Sign in to view the complete answer paper.

g

What is the use of Scanner class?

2 marks

Answer

Sign in to view the complete answer paper.

h

Contrast text streams and binary streams.

3 marks

Answer

Sign in to view the complete answer paper.

i

List the swing containers.

2 marks

Answer

Sign in to view the complete answer paper.

j

What are the various events generated by menu, List box components?

3 marks

Answer

Sign in to view the complete answer paper.

Part B

2

Compare and contrast procedure oriented programming with object oriented programming. Which paradigm is preferred for advanced problem solving? Why.

10 marks

Answer

Sign in to view the complete answer paper.

OR
310 marks
a

What is method overloading? Demonstrate with sample Java code.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write a Java program to check whether a given string is palindrome.

5 marks

Answer

Sign in to view the complete answer paper.

4

Write a program to explain the concept of dynamic method dispatch and also discuss real world applications of this concept.

10 marks

Answer

Sign in to view the complete answer paper.

OR
510 marks
a

What is a nested class? Is every nested class an inner class? Justify your answer.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain the member access rules for package in Java

5 marks

Answer

Sign in to view the complete answer paper.

610 marks
a

Explain the benefits of exception handling.

5 marks

Answer

Sign in to view the complete answer paper.

b

Demonstrate creation of user defined exception in Java.

5 marks

Answer

Sign in to view the complete answer paper.

OR
710 marks
a

Describe thread states and thread priorities.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write a program to implement producer-consumer communication using inter thread communication functions.

5 marks

Answer

Sign in to view the complete answer paper.

8

Write a program to perform find and replace activity on a given file. Read file name as command line argument and string1 to search in the file and replace it with string2. String1 and String2 are from user through prompt.

10 marks

Answer

Sign in to view the complete answer paper.

OR
910 marks
a

Discuss the steps need to be followed in establishing connectivity to a database.

5 marks

Answer

Sign in to view the complete answer paper.

b

What is a hash table? Why is it used in programming?

5 marks

Answer

Sign in to view the complete answer paper.

10

What is an event? Explain delegation event model with suitable program for handling mouse events.

10 marks

Answer

Sign in to view the complete answer paper.

OR
1110 marks
a

Why is an applet more secure than an application program?

4 marks

Answer

Sign in to view the complete answer paper.

b

Write a program to create user interface for simple arithmetic calculator using swing components and grid layout manager.

6 marks

Answer

Sign in to view the complete answer paper.

About this paper

This page contains the question paper of JAVA PROGRAMMING from Jawaharlal Nehru Technological University Hyderabad for B.Tech CSE II II, February - 2024, R13.

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