Jawaharlal Nehru Technological University Hyderabad

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

B.Tech | II | II | R13 | May - 2019

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

What is the difference between a class and an object?

2 marks

Answer

A class is a blueprint or template that defines the properties and behaviors of objects, whereas an object is an instance of a class that occupies memory and represents a real-world entity.

b

Why reserved words are not used in variable name.

3 marks

Answer

Reserved words (keywords) are predefined by the Java language for specific syntactic purposes, such as defining control structures or data types. Using them as variable names would create ambiguity for the compiler, making it impossible to distinguish between a command and a user-defined identifier.

c

What is an abstract class?

2 marks

Answer

Sign in to view the complete answer paper.

d

What is the difference between implicit and explicit import statement? Which one takes less time for compilation.

3 marks

Answer

Sign in to view the complete answer paper.

e

What is Daemon Thread?

2 marks

Answer

Sign in to view the complete answer paper.

f

How many catch blocks and finally blocks can we use with try blocks? Why.

3 marks

Answer

Sign in to view the complete answer paper.

g

Write about the string Tokenizer.

2 marks

Answer

Sign in to view the complete answer paper.

h

What is collection in Java? Differentiate between Vector and ArrayList.

3 marks

Answer

Sign in to view the complete answer paper.

i

What is adapter class?

2 marks

Answer

Sign in to view the complete answer paper.

j

In what way JButton is better than Button Class explain with an example?

3 marks

Answer

Sign in to view the complete answer paper.

Part B

210 marks
a

What are the fundamental characteristics of OOPs?

5 marks

Answer

Sign in to view the complete answer paper.

b

Write a program to compute division by 2 without using any arithmetic operator.

5 marks

Answer

Sign in to view the complete answer paper.

OR
310 marks
a

Write a program to illustrate a copy constructor so that a string may be duplicated into another variable either by assignment or copying.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain the enumerated data types with an example.

5 marks

Answer

Sign in to view the complete answer paper.

410 marks
a

Write a program which has an abstract class Solid and implements Cylinder, Cone and Sphere by inheriting from solid to find surface area and volume.

5 marks

Answer

Sign in to view the complete answer paper.

b

Discuss the various levels of access protection for packages and their implications.

5 marks

Answer

Sign in to view the complete answer paper.

OR
510 marks
a

Discuss how java handles overridden methods. In short, how base class member functions can be invoked in a derived class if the derived class also has a member function with the same name.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain with an example how multiple inheritance is achieved in Java.

5 marks

Answer

Sign in to view the complete answer paper.

610 marks
a

Write a program that counts the number of characters, words and lines in a file. Use exceptions to check whether the file you are reading exists or not. Take file name as a command line argument.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain the life cycle of a Thread.

5 marks

Answer

Sign in to view the complete answer paper.

OR
710 marks
a

Write a simple Timer that can periodically print a timeout message.

5 marks

Answer

Sign in to view the complete answer paper.

b

What happens when a raised exception is not caught by any catch block? Explain with an example.

5 marks

Answer

Sign in to view the complete answer paper.

810 marks
a

Explain the different types of JDBC drivers.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write a program to display the bytes of a file in reverse sequence. Provide the name of the file as a command line argument. (Use RandomAccessFile).

5 marks

Answer

Sign in to view the complete answer paper.

OR
910 marks
a

Write a program to illustrate the use of hash table class for storing and retrieving employee records.

5 marks

Answer

Sign in to view the complete answer paper.

b

How can we open and read a text file in java? Explain your answer with an example JAVA program.

5 marks

Answer

Sign in to view the complete answer paper.

1010 marks
a

Write a program to display the month names by JList and display the Days by JComboBox.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain how the parameters are passing to an applet.

5 marks

Answer

Sign in to view the complete answer paper.

OR
1110 marks
a

Write a simple calculator applet that can handle basic math functions.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain about the Hierarchy for the swing components.

5 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, May - 2019, 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...