Jawaharlal Nehru Technological University Hyderabad

Jawaharlal Nehru Technological University Hyderabad B.Tech II OBJECT ORIENTED PROGRAMMING THROUGH JAVA Previous Question Paper (November/December - 2017 - R16)

B.Tech | II | II-I | R16 | November/December - 2017

Answer PaperPaper Code: 133BMMaximum Marks: 75Time: 3 Hours

Note: This question paper contains two parts A and B. 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

Differentiate between print() and println() methods in Java.

2 marks

Answer

The print() method displays the argument passed to it and keeps the cursor on the same line. The println() method displays the argument and moves the cursor to the beginning of the next line.

b

What are symbolic constants? Explain with examples.

3 marks

Answer

Symbolic constants are identifiers that represent a fixed value that cannot be changed during program execution. In Java, they are typically declared using the final keyword combined with static to ensure they are class-level constants.

final double PI = 3.14159;

Using these improves code readability and maintainability by replacing magic numbers with meaningful names.

c

What are the methods available in the character streams?

2 marks

Answer

Sign in to view the complete answer paper.

d

What is the significance of the CLASSPATH environment variable in creating/using a package?

3 marks

Answer

Sign in to view the complete answer paper.

e

What is the difference between error and an exception?

2 marks

Answer

Sign in to view the complete answer paper.

f

What is synchronization and why is it important?

3 marks

Answer

Sign in to view the complete answer paper.

g

What is the significance of Legacy class? Give example.

2 marks

Answer

Sign in to view the complete answer paper.

h

What is the purpose of String Tokenizer class? Explain.

3 marks

Answer

Sign in to view the complete answer paper.

i

What are the differences between JToggle button and Radio button?

2 marks

Answer

Sign in to view the complete answer paper.

j

What is an adapter class? Explain with an example.

3 marks

Answer

Sign in to view the complete answer paper.

PART - B

210 marks
a

What is meant by byte code? Briefly explain how Java is platform independent.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain the significance of public, protected and private access specifiers in inheritance.

5 marks

Answer

Sign in to view the complete answer paper.

OR
310 marks
a

Explain different parts of a Java program with an appropriate example.

5 marks

Answer

Sign in to view the complete answer paper.

b

How does polymorphism promote extensibility? Explain with example.

5 marks

Answer

Sign in to view the complete answer paper.

410 marks
a

Explain the process of defining and creating a package with suitable examples.

5 marks

Answer

Sign in to view the complete answer paper.

b

Give an example where interface can be used to support multiple inheritance.

5 marks

Answer

Sign in to view the complete answer paper.

OR
510 marks
a

What is the accessibility of a public method or field inside a nonpublic class or interface? Explain.

5 marks

Answer

Sign in to view the complete answer paper.

b

Describe the process of importing and accessing a package with suitable examples.

5 marks

Answer

Sign in to view the complete answer paper.

610 marks
a

Differentiate between Checked and UnChecked Exceptions with examples.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write a program to create four threads using Runnable interface.

5 marks

Answer

Sign in to view the complete answer paper.

OR
710 marks
a

What are the different ways to handle exceptions? Explain.

5 marks

Answer

Sign in to view the complete answer paper.

b

How many ways are possible in java to create multiple threaded programs? Discuss the differences between them.

5 marks

Answer

Sign in to view the complete answer paper.

810 marks
a

Differentiate between ArrayList and a Vector? Why ArrayList is faster than Vector? Explain.

5 marks

Answer

Sign in to view the complete answer paper.

b

How an Hashtable can change the iterator? Explain.

5 marks

Answer

Sign in to view the complete answer paper.

OR
910 marks
a

Explain the Bit Set and Calendar classes in detail.

5 marks

Answer

Sign in to view the complete answer paper.

b

Discuss the differences between HashList and HashMap, Set and List.

5 marks

Answer

Sign in to view the complete answer paper.

1010 marks
a

List and explain different types of Layout managers with suitable examples.

5 marks

Answer

Sign in to view the complete answer paper.

b

How to move/drag a component placed in Swing Container? Explain.

5 marks

Answer

Sign in to view the complete answer paper.

OR
1110 marks
a

Discuss about different applet display methods in brief.

5 marks

Answer

Sign in to view the complete answer paper.

b

What are the various components of Swing? Explain.

5 marks

Answer

Sign in to view the complete answer paper.

About this paper

This page contains the question paper of OBJECT ORIENTED PROGRAMMING THROUGH JAVA from Jawaharlal Nehru Technological University Hyderabad for B.Tech CSE II II-I, November/December - 2017, R16.

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

Other papers in OBJECT ORIENTED PROGRAMMING THROUGH JAVA

Loading Question Papers

Fetching data from database...