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

Nov - Dec - 2022 (2) Dwds

This document contains 8 questions related to object-oriented programming in Java. It covers topics such as constructors, inheritance, polymorphism, exception handling, collections, File I/O, and databases. The questions test understanding of core OOP concepts through examples and short questions.

Uploaded by

vaibhavp0285
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)
30 views2 pages

Nov - Dec - 2022 (2) Dwds

This document contains 8 questions related to object-oriented programming in Java. It covers topics such as constructors, inheritance, polymorphism, exception handling, collections, File I/O, and databases. The questions test understanding of core OOP concepts through examples and short questions.

Uploaded by

vaibhavp0285
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

Total No. of Questions : 8] SEAT No.

8
23
PA-1245 [Total No. of Pages : 2

ic-
tat
[5925]-268

3s
S.E. (Information Technology)

3:3
02 91
OBJECT ORIENTED PROGRAMMING

3:4
0
31
(2019 Pattern) (Semester - III) (214444)
5/0 13
Time : 2½ Hours] [Max. Marks : 70
0
2/2
Instructions to the candidates:
.23 GP

1) Answer Q.1 or Q.2, Q.3 or Q.4, Q.5 or Q.6, Q.7 or Q.8


E

2) Neat diagrams must be drawn wherever necessary.


80

8
C

23
3) Figurest to the right side indicate full marks.

ic-
4) Assume suitable data if necessary.
16

tat
8.2

3s
Q1) a) What is Constructor? What are the characteristics of the Constructor?
.24

3:3
Explain Constructor Overloading with an example? [9]
91
49

3:4
b) Write a short note on : [9]
30
31

i) Garbage collection in Java


01
02

ii) Destructor in C++


2/2
GP

OR
5/0

Q2) a) Design a class ‘Complex’ with data members for real and imaginary
CE
80

part. Provide default and Parameterized constructors. Write a program

8
23
in JAVA to perform a Subtraction of two complex numbers. [9]
.23

b) Discuss with example Dynamic initialization of object in Java. [9] ic-


16

tat
8.2

3s

Q3) a) Define Inheritance. What are the types of Inheritance? How can you
.24

3:3
91

inherit a class in Java? [9]


49

3:4

b) What is polymorphism? Explain compile time and run time polymorphism.


30
31

[8]
01
02

OR
2/2
GP

Q4) a) Differentiate between method overriding and method overloading. Explain


5/0

method overriding concept with an example. [9]


CE
80

b) What is interface in java? How to declare an interface, write a syntax?


.23

Can we achieve multiple inheritance by using interface? Justify with an


example. [8]
16
8.2
.24

P.T.O.
49
Q5) a) What is an exception? Explain the following terms with respect to

8
23
exception handling: [9]

ic-
i) try

tat
ii) catch

3s
iii) throw

3:3
02 91
iv) finally

3:4
b) Write a generic method to count the number of elements in a collection

0
31
5/0 13
that have a specific properties like odd integers, prime numbers and
palindrome. [9]
0
2/2
.23 GP

OR
Q6) a) Explain ArrayList class with an example. [9]
E
80

8
b) Write a java program to accept and display the month number. Throw
C

23
number format exception if improper month number is entered. [9]

ic-
16

tat
8.2

3s
Q7) a) Explain FileinputStream class. Write any four methods of File Input stream
.24

class with their syntax. [9]


3:3
91
49

b) Explain following File operations using File class : [8]


3:4
30

i) Create a File
31

ii) Read from a File


01
02

iii) Write to a File


2/2
GP

iv) Close a File


5/0
CE

OR
80

8
23
Q8) a) Write a short note on : [8]
.23

i) Iterator ic-
16

tat
ii) Singleton
8.2

3s

b) Implement a program for maintaining a database of student records using


.24

3:3
91

Files. Student has Student-id, name, Roll_no, Class, marks and address.
49

3:4

Display the data for few students. [9]


30
31

i) Create Database
01
02

ii) Display Database


2/2
GP

iii) Delete Records


5/0

iv) Update Record


CE
80

v) Search Record
.23


16
8.2
.24

[5925]-268 2
49

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy