Oop Nov - Dec - 2023
Oop Nov - Dec - 2023
8
23
P-9136 [Total No. of Pages : 2
ic-
tat
[6179]-262
4s
9:0
S.E. (Information Technology)
02 91
9:3
OBJECT ORIENTED PROGRAMMING
0
40
3/0 13
(2019 Pattern) (Semester - III) (214444)
0
1/2
Time : 2½ Hours] [Max. Marks : 70
.23 GP
8
C
23
2) Neat diagrams must be drawn wherever necessary.
ic-
3) Figures to the right indicate full marks.
16
tat
4) Assume suitable data, if necessary.
8.2
4s
.24
9:0
91
Q1) a) What is a constructor? Explain the Default constructor with an example.[6]
49
9:3
30
OR
CE
80
8
Q2) a) Explain the Parameterized constructor and Copy constructor with an
23
.23
example. [6]
ic-
16
tat
b) What is garbage collection? Explain the finalize () method in detail. [6]
8.2
4s
9:0
91
[6]
49
9:3
30
40
01
OR
8.2
P.T.O.
.24
49
Q4) a) Design and develop inheritance for a given case study, identify objects
8
23
and relationships and implement inheritance wherever applicable,
ic-
Employee class has Emp_name, Emp_id, Address, Mail_id and
tat
Mobile_noas members. Inherit the classes: Programmer, Team Lead,
4s
Assistant Project Manager and Project Manager from the employee class.
9:0
Add Basic Pay (BP) as the member of all the inherited classes with 97%
02 91
of BP as DA, 10% of BP as HRA, 12% of BP as PF, and 0.1% of BP
9:3
for staff club fund. Generate pay slips for the employees with their
0
40
3/0 13
gross and net salary. [9]
b) Explain the concept of Method Overloading and method overriding with
0
1/2
.23 GP
examples. [8]
E
80
8
Q5) a) What is the Exception exception-handling mechanism in Java? Write a
C
23
java program to handle the Divide by zero exception. [8]
ic-
16
tat
8.2
4s
c) Explain Collection classes in detail. [5]
.24
9:0
OR
91
49
9:3
Q6) a) What is a generic method? Explain with a suitable example. [6]
30
Q7) a) Define the term Stream. Explain various stream classes. [8]
80
8
23
b) Design a Java program for employee management with following
.23
operations - [9]
ic-
16
tat
i) Create file
8.2
4s
9:0
91
iii) Read data from file. Consider Name, employee id and department
49
9:3
as attributes of employee.
30
40
OR
01
02
.23
16
8.2
.24
[6179]-262 2
49