0% found this document useful (0 votes)
63 views2 pages

CST205 Object Oriented Programming Using Java, December 2023

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)
63 views2 pages

CST205 Object Oriented Programming Using Java, December 2023

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/ 2

o80oocsr205t2220L

U
APJ ABDUL I(ALAM TECHNOLOGICAL
(S' FE) Examination December
B.Tech Degree 53 (R, S) / Sl (PT)

Course Code: CST205


Course Name: OBJECT ORIENTED
PROGRAMMING USING JAVA
Duration: 3 Hours
Max. Marks: 100
PART A
Marks
Answer all questions' Each question carries 3 marks
(3)
I Describe the role of JIT comPiler'
(3)
2 Why Java is said to be robust?
(3)
J List the properties of a constructor'
(3)
and protected access specifiers'
4 Discuss the use of public, private
(3)
exceptions'
) Distinguish between checked and unchecked
(3)
in Java
6 Explain any three character stream classes
(3)
threads in Java'
7 Explain the different methods of creating
source object'
(3)
8 List any three event listeners and the conesponding
(3)
9 Describe the features of Swing'
(3)
l0 Explain about the containers in Swing'
PART B
module. Each question carries 14
marks
Answer any onefall questionfrom iacn
Module I
llaDistinguishbetweenfunctionorientedandobjectorienteddesignparadigms(8)
with an examPle'
bDrawaUMLactivitydiagramforanorderprocessingsystem.(6)
tn
of Java with suitable examples' (8)
12a Explain any four object oriented features
B DrawaUMLclassdiagramwhichshowsstructureandattributesofanATM(6)
withentitiesBanKATM,DebitCard'Customer'Account'ATMTransaction'
Module 2

13aCreateaclassPersonwithattributesname,age,addressandamethod(8)
display()todisplaythedetails.CreateasubclassStudentwithattributes
,rollno,markl,mark2andmark3.overidedisplay()methodandcalculatethe

Page lof2
08000csT205t2220L

grade. create another subcrass


Facurty with attributes facurty_id,
department,
basicjay and DA. pvenide disprayQ
method to carcurate totar sarary
as
(basicAay+D A)+70% of (basicjay+DA).
Create instances of Student and
Faculty and display the details.
b Explain method overloading with
an example.
(6)
OR
14 a Explain dynamic method dispatch
with an example
(8)
b Discuss the uses of final keyword
citing examples.
(6)
Module 3
l5 a create a package reversepackage.
Add a crass Reverse in it with a
method (s)
reverse$ to print the reverse
of a string without using buirt-in
methods. create
a crass outside the package
and use this method to reverse
a string.
b Explain object stream seriarization
with sampre code. (6)
OR
l6 a How do you create user defined
exceptions in Java? write a Java
program to (s)
find the average of n numbers entered
as command rine arguments.
Raise a
userdefined exception ifthe average
exceeds 100.
b Explain the use of interface in Java.
(6)
Module 4
17 a write a multithreaded Java program
with two threads. one thread generates
(8)
even numbers from I to 100
and another thread generates
odd numbers from r
to 100. Ensure thatthe threads do
not interfere.
b Discuss the methods for String
comparison with exampres.
(6)
OR
18a Explain how event handling is
done in Java.
b How do you access the erements . (g)
in an /#aylist? Iilustrate with an exampre
(6)
Module 5
19a Explain with sampre code the
steps in estabrishing JDBC
connectivity. (8)
b Describe the architecture of JDBC
with a neat diagram.
(6)
OR
20a write a GUI program to perform arithmetic
operations oftwo numbers.
(8)
b Discuss any three layout managers
in Swing.
(6)

Page2of2

You might also like