0% found this document useful (0 votes)
25 views5 pages

JAVA Previous Question Papers Jntuh r18

The document contains examination papers for Object Oriented Programming through Java for B. Tech III Year II Semester from various years. It includes questions on topics such as object-oriented paradigm, inheritance, exception handling, multithreading, and applet creation. Each paper consists of multiple questions, with students required to answer a set number of them.

Uploaded by

Ala Kapil
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views5 pages

JAVA Previous Question Papers Jntuh r18

The document contains examination papers for Object Oriented Programming through Java for B. Tech III Year II Semester from various years. It includes questions on topics such as object-oriented paradigm, inheritance, exception handling, multithreading, and applet creation. Each paper consists of multiple questions, with students required to answer a set number of them.

Uploaded by

Ala Kapil
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Code No: 156CC R18

JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD


B. Tech III Year II Semester Examinations, August - 2022
OBJECT ORIENTED PROGRAMMING THROUGH JAVA
jn
(Common to ECE, EIE)
Time: 3 Hours Max.Marks:75
t
Answer any five questions
uh
All questions carry equal marks
---

1.a) What is the need of object oriented paradigm?


b) Write a program to demonstrate constructor overloading in Java. [7+8]
us
2.a) What is byte code? How does it differ from source code, object code?
b) Illustrate the use of ‘this’ keyword.
ed
c) List the frequently used methods of String class. [5+5+5]

3.a) What is inheritance? Discuss the benefits and costs of inheritance.


b) Write a program to implement multi-level inheritance. [7+8]
pa
4.a) Demonstrate dynamic method dispatch concept in Java.
b) Compare BufferedInput stream with DataInput stream.
c) How to define an interface? Give an example. [5+5+5]
pe
5.a) What are the five keywords used in Java exception handling? With suitable code
snippets explain their usage.
ra
b) Write a program to read date of birth from user and display the age of the user. [8+7]

6.a) How to create threads in Java? Illustrate with an example.


ug
b) Write a program to solve producer-consumer problem using threads. [7+8]

7.a) Describe delegation event model.


-2
b) What is a layout manager? Discuss different types of layout manager. [7+8]

8.a) Write code to create an Applet drawing a smiley face using graphics class.
02
b) Explain model-view-controller architecture for application development. [8+7]
2
---oo0oo---
R18
U
Code No: 156CC
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
SE
B. Tech III Year II Semester Examinations, August/September - 2021
OBJECT ORIENTED PROGRAMMING THROUGH JAVA
(Common to ECE, EIE)
Time: 3 Hours Max. Marks: 75
Answer any five questions
D
All questions carry equal marks
---
PA
1.a) Explain features of object oriented programming languages.
b) Discuss the different levels of accesses protection available in Java with examples.
[7+8]
PE
2.a) Explain parameter passing mechanism in Java.
b) Explain briefly about String class and discuss various methods in string class with an
example. [7+8]
R
3.a) What is package? Explain the process of defining and creating a package with suitable
examples
SA
b) What is interface? How to implement interface in Java? [8+7]

4.a) Write a Java program to implement method overriding.


b) What is thread? How to implement multithreading in Java. [8+7]
U
5.a) How to implement user defined exceptions in Java with example?
b) Explain generic methods in Java with examples.
G
[7+8]

6.a) Demonstrate creation of thread by implementing Runnable interface with a program.


/S
b) Explain about the Key event Class and its methods in Java. [7+8]

7.a) Explain about Menu Bars and Menus class in AWT.


EP
b) What is Adapter classes? Explain Mouse Motion Adapter class with suitable Java
program. [7+8]

8.a) What is swing? Explain various swing components.


-
b) Develop an applet that receives an integer in one text filed and the compute the factorial
20
value and return in another text filed, when the button named “Compute” is clicked.
[7+8]
21
---ooOoo---
Code No: 156CC R18
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
B. Tech III Year II Semester Examinations, February - 2023
OBJECT ORIENTED PROGRAMMING THROUGH JAVA
JN
(Common to ECE, EIE)
Time: 3 Hours Max. Marks: 75

Note: i) Question paper consists of Part A, Part B.


TU
ii) Part A is compulsory, which carries 25 marks. In Part A, Answer all questions.
iii) In Part B, Answer any one question from each unit. Each question carries 10 marks
and may have a, b as sub questions.
H
PART – A
(25 Marks)
U
1.a) Define a class. [2]
b) What is the significance of Java byte code? [3]
se
c) Define polymorphism. [2]
d) How to declare an interface in Java? [3]
e) Define a thread. How is it different from a process? [2]
d
f) What is the need of auto boxing? [3]
g) What is an event? [2]
h) What is the importance of an adapter class? [3]
pa
i) List the types of applets. [2]
j) What are the limitations of AWT? [3]

PART – B
pe
(50 Marks)

2. Describe the features of object oriented programming. [10]


rs
OR
3.a) Does Java support bit-wise operators? Justify your answer.
b) Demonstrate constructor overloading with an example Java program. [5+5]
20
4. Explain the benefits and various forms of inheritance implemented in Java. [10]
OR
5.a) Differentiate between an abstract class and an interface.
23
b) Discuss the access control privileges among packages. [5+5]

6. How are exceptions handled in Java programming? Demonstrate with suitable code
segments. [10]
OR
7.a) Discuss the built-in functions used in inter thread communication.
b) Write a Java program to count number of words in a given sentence. [5+5]
8.a) Briefly explain event delegation model.
b) Discuss any three listener interfaces frequently used in event handling. [5+5]
OR
JN
9. Construct an user interface form for student registration to a hackathon using AWT
components and event handling concept. [10]

10.a) Write the code to create an applet to draw a smiley.


TU
b) How to pass parameters to an applet? Present an example code. [5+5]
OR
11. Describe in detail about Model-View-Controller (MVC) architecture with relevant Java
program. [10]
H
---ooOoo---
U
se
d
pa
pe
rs
20
23
R18
us
Code No: 156CC
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
B. Tech III Year II Semester Examinations, February/March - 2022
ed
OBJECT ORIENTED PROGRAMMING THROUGH JAVA
(Common to ECE, EIE)
Time: 3 hours Max. Marks: 75
Answer any five questions
All questions carry equal marks
pa
---

1.a) What is method overloading? Define two methods that have same name but different
pe
parameter types. Define two methods in class that have identical method names and
parameter profile with different return value types or different modifier.
b) What is an array? Write a program that creates and initializes a four integer elements
rf
array. Find the sum and average of its value. [8+7]

2.a) Write a program to find the inverse of a given matrix.


eb
b) What is constructor? Explain the types of constructors are used in Java. [6+9]

3.a) Explain the process of defining and creating a package with suitable examples.
b) Define an interface in java. How are interfaces implemented? How they can be accessed?
/m
[8+7]

4.a) Explain the types of Access specifiers are used in Java and also illustrate with an
ar
example.
b) What is the use of super and final? [7+8]
-2
5.a) What is an Exception? List out the keywords for exception handling and write steps to
develop user defined exception.
0
b) Write a program that counts number of characters, words, and lines in a file. Use
exceptions to check whether the file that is read exists or not. [7+8]
22
6.a) What is multithreading? What are the priorities given for multithreading? Explain
advantages of multithreading.
b) Describe the complete life cycle of a thread with an example. [8+7]
jn
7.a) Write short notes on event, event source and event listeners.
b) Explain about layout manager and different layouts and write an example program to
tu
demonstrate layouts. [7+8]
h
8.a) How to create an applet? Explain with an example.
b) Explain MVC Architecture in detail. [8+7]

---ooOoo---

You might also like