Skip to content
EndsemDec 20252019 patternSE IT

Object Oriented Programming (OOP) SPPU Endsem Question Paper Dec 2025

All 8 questions from this SPPU endsem paper, as printed. Read them here or open the PDF.

Subject code
214444
Pattern
2019 pattern
Exam
Endsem
Session
Dec 2025
Max. marks
70
Time
2½ Hours
Semester
III
Paper code
[6582]-62

Printed for: S.E. (Information Technology)

Instructions to the candidates

  1. Answer Q.1 or Q.2, Q.3 or Q.4, Q.5 or Q.6, Q.7 or Q.8.
  2. Neat diagrams must be drawn wherever necessary.
  3. Figures to the right indicates full marks.
  4. Assume suitable data if necessary.

Questions

  1. Q1

    1. a)

      Explain constructor overloading with an example.

      [6]
    2. b)

      Write a program to find the area and perimeter of a circle using a constructor.

      [6]
    3. c)

      Write a short note on ‘Copy Constructor’ in JAVA.

      [6]
  2. Q2

    1. a)

      What are the various types of constructors in JAVA? Explain anyone in detail with example.

      [6]
    2. b)

      Explain the following terms : i) garbage collection ii) finalize () method iii) destructor

      [6]
    3. c)

      Design a class ‘Complex’ with data members for the real and imaginary part. Provide default and Parameterized constructors. Write a program in JAVA to perform the addition of two complex numbers.

      [6]
  3. Q3

    1. a)

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

      Also asked:May 2024 ·Jan 2024

      [6]
    2. b)

      What is an interface in Java? How to declare an interface and write a syntax with an example.

      [6]
    3. c)

      Differentiate between compile time polymorphism and run time polymorphism.

      Also asked:May 2024 ·Jan 2024

      [6]
  4. Q4

    1. a)

      Define multiple inheritance. How multiple inheritance is achieved in Java?

      [6]
    2. b)

      Explain the constructor with a default argument with an example.

      [6]
    3. c)

      Differentiate between method overriding and method overloading. 2

      [6]
  5. Q5

    1. a)

      Write a Java program to accept the age of a person. If entered negative age throw user-defined exception “Negative age”.

      [6]
    2. b)

      Explain the following terms : i) try ii) finally iii) throws

      [6]
    3. c)

      Explain the exception handling mechanism in Java with an example.

      Also asked:Jan 2024

      [5]
  6. Q6

    1. a)

      Explain : i) ArrayList Class ii) LinkedList Class.

      [6]
    2. b)

      Explain how user-defined exceptions can be handled.

      [6]
    3. c)

      Write a program to write a generic function and demonstrate swapping of multiple types of data using the same.

      [5]
  7. Q7

    1. a)

      Define Stream. Enlist various Stream Classes in Java. Explain anyone in detail.

      [6]
    2. b)

      Write a short note on : i) Adaptor ii) Singleton

      [6]
    3. c)

      Write a Java program to copy the content of the file “file1.txt” into a new file “file2.txt”.

      [5]
  8. Q8

    1. a)

      What is a design pattern? Enlist the types of design patterns. Explain anyone with an example.

      [6]
    2. b)

      Implement a program for maintaining a database of employee records using Files. Employee has Emp_id, Emp_name, Emp_salary, Emp_designation. Display the data for a few employees. • Create Database • Display Database • Delete Records • Update Record • Search Record

      [6]
    3. c)

      This part has equations that don’t show as text. Open the PDF to read it.

      [5]