JNTU

JNTU B.Tech III JAVA PROGRAMMING Previous Question Paper (May - 2019 - R16)

B.Tech | III | II | R16 | May - 2019

Answer PaperPaper Code: 136FMMaximum Marks: 75Time: 3 hours

Part A is compulsory which carries 25 marks. Answer all questions in Part A. Part B consists of 5 Units. Answer any one full question from each unit. Each question carries 10 marks and may have a, b, c as sub questions.

PART - A

125 marks
a

Define polymorphism.

2 marks

Answer

Polymorphism is the ability of an object or reference to take on many forms. It allows methods to perform different tasks based on the object that is invoking them, typically achieved through method overloading (compile-time) and method overriding (runtime).

b

Why is byte code of Java is known as magical code?

3 marks

Answer

Java bytecode is considered magical because it is platform-independent. It acts as an intermediate representation that can be executed on any device equipped with a Java Virtual Machine (JVM), enabling the 'write once, run anywhere' (WORA) capability regardless of the underlying hardware or operating system.

c

What is an inner class?

2 marks

Answer

Sign in to view the complete answer paper.

d

Differentiate between interface and abstract class.

3 marks

Answer

Sign in to view the complete answer paper.

e

List checked exceptions of Java.

2 marks

Answer

Sign in to view the complete answer paper.

f

How to create a thread?

3 marks

Answer

Sign in to view the complete answer paper.

g

What is a ResultSet?

2 marks

Answer

Sign in to view the complete answer paper.

h

How is a vector different from an array?

3 marks

Answer

Sign in to view the complete answer paper.

i

Why swing components are light weight?

2 marks

Answer

Sign in to view the complete answer paper.

j

Give AWT hierarchy and swing hierarchy.

3 marks

Answer

Sign in to view the complete answer paper.

PART - B

2

Make a comparison of procedure oriented programming and object oriented programming.

10 marks

Answer

Sign in to view the complete answer paper.

OR
310 marks
a

How does Java support type casting?

5 marks

Answer

Sign in to view the complete answer paper.

b

Demonstrate the use of ‘this’ keyword.

5 marks

Answer

Sign in to view the complete answer paper.

4

Describe different forms of inheritance. Write a program to implement multiple inheritance.

10 marks

Answer

Sign in to view the complete answer paper.

OR
510 marks
a

What is meant by dynamic binding? Explain dynamic method dispatch.

5 marks

Answer

Sign in to view the complete answer paper.

b

Describe the need of package creation in Java.

5 marks

Answer

Sign in to view the complete answer paper.

6

What is an exception? What are the benefits of exception handling? Explain the five keywords of Java important for exception handling.

10 marks

Answer

Sign in to view the complete answer paper.

OR
710 marks
a

Differentiate between process and thread.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write a program to solve producer-consumer problem using inter-thread communication.

5 marks

Answer

Sign in to view the complete answer paper.

8

Write a Java program to append second file content to first file, read two file names as command line arguments.

10 marks

Answer

Sign in to view the complete answer paper.

OR
910 marks
a

Describe the four types of database drivers of JDBC.

5 marks

Answer

Sign in to view the complete answer paper.

b

Describe the important methods of StringTokenizer class.

5 marks

Answer

Sign in to view the complete answer paper.

10

What is an event? Describe delegation event model and write a program to handle mouse events.

10 marks

Answer

Sign in to view the complete answer paper.

OR
11

Compare applets with application programs. With suitable program segments explain applet life cycle.

10 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 IT III II, May - 2019, 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...