JNTU

JNTU B.Tech III OBJECT ORIENTED PROGRAMMING THROUGH JAVA Previous Question Paper (April - 2018 - R15)

B.Tech | III | II | R15 | April - 2018

Answer PaperPaper Code: 126ZYMaximum Marks: 75Time: 3 hours

Part A is compulsory. Part B consists of 5 Units. Answer any one full question from each unit.

Part A

125 marks
a

Define the terms method overriding and overloading.

2 marks

Answer

Method Overloading occurs when multiple methods in the same class have the same name but different parameter lists (different number or type of arguments). Method Overriding occurs when a subclass provides a specific implementation for a method that is already defined in its superclass, maintaining the same method signature.

b

Discuss briefly about abstraction and encapsulation.

3 marks

Answer

Abstraction is the process of hiding complex implementation details and showing only the essential features of an object to the user. Encapsulation is the mechanism of wrapping data (variables) and the code acting on the data (methods) together as a single unit, typically by making data members private and providing public getter and setter methods.

c

What are the benefits of inheritance?

2 marks

Answer

Sign in to view the complete answer paper.

d

Give the need and use of ‘this’ keyword in JAVA.

3 marks

Answer

Sign in to view the complete answer paper.

e

How a thread differs from a process?

2 marks

Answer

Sign in to view the complete answer paper.

f

Give a brief note on live( ) and join( ) methods.

3 marks

Answer

Sign in to view the complete answer paper.

g

What is event delegation? Give an example.

2 marks

Answer

Sign in to view the complete answer paper.

h

List the differences between a CheckBox and Choice.

3 marks

Answer

Sign in to view the complete answer paper.

i

Differentiate between an application program and an applet.

2 marks

Answer

Sign in to view the complete answer paper.

j

How can you pass parameters to applets?

3 marks

Answer

Sign in to view the complete answer paper.

Unit I

210 marks
a

Explain various characteristics of object-oriented programming concepts.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write a brief note on garbage collection.

5 marks

Answer

Sign in to view the complete answer paper.

OR
310 marks
a

What do you mean by constructor overloading in java? Explain with an example.

5 marks

Answer

Sign in to view the complete answer paper.

b

List special properties of constructors in JAVA.

5 marks

Answer

Sign in to view the complete answer paper.

Unit II

410 marks
a

Explain the access modifiers (private, public, protected and default) used in inheriting the classes in JAVA.

5 marks

Answer

Sign in to view the complete answer paper.

b

How an interface differs from an abstract class?

5 marks

Answer

Sign in to view the complete answer paper.

OR
510 marks
a

What is polymorphism? Differentiate between compile time and runtime polymorphism.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain how to implement runtime polymorphism using a java program.

5 marks

Answer

Sign in to view the complete answer paper.

Unit III

6

What do you mean by exception? How are they handled in Java? Explain try-catch-finally block with an example.

10 marks

Answer

Sign in to view the complete answer paper.

OR
710 marks
a

How interthread communication is implemented in Java?

5 marks

Answer

Sign in to view the complete answer paper.

b

Write a java program to create multithreads with different priorities.

5 marks

Answer

Sign in to view the complete answer paper.

Unit IV

8

Explain the classes and interfaces needed to handle various mouse events.

10 marks

Answer

Sign in to view the complete answer paper.

OR
910 marks
a

How to handle Buttons? Explain it with a java program.

5 marks

Answer

Sign in to view the complete answer paper.

b

Discuss about AWT class hierarchy.

5 marks

Answer

Sign in to view the complete answer paper.

Unit V

1010 marks
a

Explain the life cycle of an Applet.

5 marks

Answer

Sign in to view the complete answer paper.

b

Give an example code in creating a login page using applets in JAVA.

5 marks

Answer

Sign in to view the complete answer paper.

OR
11

Explain three UI components of swing and their classes and constructors with a sample JAVA code.

10 marks

Answer

Sign in to view the complete answer paper.

About this paper

This page contains the solved question paper with answers of OBJECT ORIENTED PROGRAMMING THROUGH JAVA from JNTU for B.Tech EIE III II, April - 2018, R15.

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

Other papers in OBJECT ORIENTED PROGRAMMING THROUGH JAVA

Loading Question Papers

Fetching data from database...