JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD

JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD B.Tech II OBJECT ORIENTED PROGRAMMING THROUGH JAVA Previous Question Paper (November/December - 2018 - R16)

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

Answer PaperPaper Code: 133BMMaximum 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.

Part A

125 marks
a

What is inheritance? Give example.

2 marks

Answer

Inheritance is a mechanism in Java where one class acquires the properties and behaviors of another class, promoting code reusability. For example, if class Animal has a method eat(), a subclass Dog can inherit this method using the extends keyword.

b

Define the basic characteristics of object oriented programming.

3 marks

Answer

The basic characteristics of Object-Oriented Programming are:

  • Encapsulation: Wrapping data and methods into a single unit to restrict direct access.
  • Inheritance: Deriving new classes from existing ones to reuse code.
  • Polymorphism: Allowing objects to take many forms, typically through method overloading and overriding.
  • Abstraction: Hiding complex implementation details and showing only essential features.
c

What is Console class? What is its use in java?

2 marks

Answer

Sign in to view the complete answer paper.

d

What is the use of auto boxing in java? Explain.

3 marks

Answer

Sign in to view the complete answer paper.

e

What is thread based preemptive multitasking?

2 marks

Answer

Sign in to view the complete answer paper.

f

How do we set priorities for threads?

3 marks

Answer

Sign in to view the complete answer paper.

g

What is a Java Priority queue?

2 marks

Answer

Sign in to view the complete answer paper.

h

What is a Collection Class? Give an example.

3 marks

Answer

Sign in to view the complete answer paper.

i

What is Swing in Java? How it differs from Applet.

2 marks

Answer

Sign in to view the complete answer paper.

j

How do applets differ from application program?

3 marks

Answer

Sign in to view the complete answer paper.

Part B

210 marks
a

Describe the structure of a typical Java program with an example.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write the significance of Java Virtual Machine.

5 marks

Answer

Sign in to view the complete answer paper.

OR
310 marks
a

How do we implement polymorphism in JAVA? Explain briefly.

5 marks

Answer

Sign in to view the complete answer paper.

b

What is an array? How do you declare the array in java? Give examples.

5 marks

Answer

Sign in to view the complete answer paper.

410 marks
a

How to design and implement an interface in Java? Give an example.

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 are the methods available in the Character Streams? Discuss.

5 marks

Answer

Sign in to view the complete answer paper.

b

Distinguish between Byte Stream Classes and Character Stream Classes.

5 marks

Answer

Sign in to view the complete answer paper.

610 marks
a

What is an Exception? How is an Exception handled in JAVA?

5 marks

Answer

Sign in to view the complete answer paper.

b

Write a java program that illustrates the application of multiple catch statements.

5 marks

Answer

Sign in to view the complete answer paper.

OR
710 marks
a

Differentiate between multiprocessing and multithreading. What is to be done to implement these in a program?

5 marks

Answer

Sign in to view the complete answer paper.

b

Write a program that creates two threads. Fist thread prints the numbers from 1 to 100 and the other thread prints the numbers from 100 to 1.

5 marks

Answer

Sign in to view the complete answer paper.

810 marks
a

What are similarities and difference between ArrayList and Vector? Explain.

5 marks

Answer

Sign in to view the complete answer paper.

b

What is different between Iterator and ListIterator? Explain different ways to iterate over a list.

5 marks

Answer

Sign in to view the complete answer paper.

OR
910 marks
a

What are the best practices related to Java Collections Framework? Discuss.

5 marks

Answer

Sign in to view the complete answer paper.

b

What is Comparable and Comparator interface? Differentiate between them.

5 marks

Answer

Sign in to view the complete answer paper.

1010 marks
a

What is the difference between init( ) and start ( ) methods in an Applet? When will each be executed?

5 marks

Answer

Sign in to view the complete answer paper.

b

Write the applets to draw the Cube and Circle shapes.

5 marks

Answer

Sign in to view the complete answer paper.

OR
1110 marks
a

Explain various layout managers in JAVA.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write a program to create a frame window that responds to mouse clicks.

5 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 JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD for B.Tech MME-MMT II II-I, November/December - 2018, R16.

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...