JNTU

JNTU B.Tech II JAVA PROGRAMMING Previous Question Paper (December - 2017 - R15)

B.Tech | II | II | R15 | December - 2017

Answer PaperPaper Code: 124CXMaximum 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.

Part A

125 marks
a

Define data abstraction.

2 marks

Answer

Data abstraction is the process of hiding internal implementation details of an object and exposing only the essential features to the user. It allows the user to interact with the object through a simplified interface without needing to understand the underlying complexity.

b

What is the size of char data type? Why does it differ from C language?

3 marks

Answer

The size of the char data type is 2 bytes (16 bits). It differs from C because Java uses the Unicode character set to support international languages, whereas C uses ASCII, which only requires 1 byte.

c

What is the use of anonymous inner class?

2 marks

Answer

Sign in to view the complete answer paper.

d

What is a package? How to define it and access it?

3 marks

Answer

Sign in to view the complete answer paper.

e

Differentiate between error and exception.

2 marks

Answer

Sign in to view the complete answer paper.

f

How to assign priorities to threads?

3 marks

Answer

Sign in to view the complete answer paper.

g

List the functions of Stack class.

2 marks

Answer

Sign in to view the complete answer paper.

h

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

3 marks

Answer

Sign in to view the complete answer paper.

i

What are the sources for item event?

2 marks

Answer

Sign in to view the complete answer paper.

j

Give the hierarchy for swing components.

3 marks

Answer

Sign in to view the complete answer paper.

Part B

210 marks
a

What feature of Java makes it platform independent and portable?

5 marks

Answer

Sign in to view the complete answer paper.

b

Is Java a robust language? Justify your answer.

5 marks

Answer

Sign in to view the complete answer paper.

OR
310 marks
a

Differentiate between a class and object.

5 marks

Answer

Sign in to view the complete answer paper.

b

Demonstrate constructor overloading concept.

5 marks

Answer

Sign in to view the complete answer paper.

4

What is inheritance? Explain different forms of inheritance with suitable program segments and real world example classes.

10 marks

Answer

Sign in to view the complete answer paper.

OR
510 marks
a

Differentiate between interface and abstract class.

5 marks

Answer

Sign in to view the complete answer paper.

b

What is meant by dynamic method dispatch?

5 marks

Answer

Sign in to view the complete answer paper.

610 marks
a

Write a program to illustrate the use of multiple catch blocks for a try block.

5 marks

Answer

Sign in to view the complete answer paper.

b

What are the uses of ‘throw’ and ‘throws’ clauses for exception handling?

5 marks

Answer

Sign in to view the complete answer paper.

OR
710 marks
a

What is the difference between a thread and a process?

5 marks

Answer

Sign in to view the complete answer paper.

b

How to achieve synchronization among threads? Write suitable code.

5 marks

Answer

Sign in to view the complete answer paper.

810 marks
a

What is a vector? How does it differ from array, list?

5 marks

Answer

Sign in to view the complete answer paper.

b

Write a program to count number of words in a given sentence.

5 marks

Answer

Sign in to view the complete answer paper.

OR
910 marks
a

Write a program to copy the contents of file1 to file 2. Read the names of files as command line arguments.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write about driver manager class for database connectivity.

5 marks

Answer

Sign in to view the complete answer paper.

1010 marks
a

Why swing components are preferred over AWT components?

5 marks

Answer

Sign in to view the complete answer paper.

b

What is an adapter class? What is their role in event handling?

5 marks

Answer

Sign in to view the complete answer paper.

OR
1110 marks
a

Explain the life cycle of an applet.

5 marks

Answer

Sign in to view the complete answer paper.

b

What are the various layout managers used in Java?

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 IT II II, December - 2017, R15.

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

Other papers in JAVA PROGRAMMING

Loading Question Papers

Fetching data from database...