0% found this document useful (0 votes)
14 views4 pages

Java Imp Questions

Uploaded by

gaikwadrupali629
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)
14 views4 pages

Java Imp Questions

Uploaded by

gaikwadrupali629
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/ 4

Important University Questions

Subject: OOP Course: SEIT-A


Course Teacher: Mr. S. S. Bhosale

Q-1 What is a constructor? Explain the Default constructor with an example.[6]

Q-2 Create a Bookshop inventory class. Use appropriate constructors for


Bookshop Management. [6]

Q-3 Can we overload the constructor? Explain with Example. [6]

Q-4 Explain the Parameterized constructor and Copy constructor with an


example. [6]

Q-5 What is garbage collection? Explain the finalize () method in detail. [6]

Q-6 What is a destructor? Differentiate between Constructor and Destructor [5]


Q-7 Differentiate between object oriented programming and procedural
oriented programming. [5]

Q-8 Model a real-world scenario ‘vehicle’ class using object oriented


paradigm. [5]

Q-9 Write a short notes on: [5]


i) Data Abstraction
ii) Inheritance

Q-10 Describe the characteristics of object oriented programming. [5]

Q-11 Write a short notes on: [5]


i) Polymorphism
ii) Data Encapsulation

Q-12 What are the limitations of procedural oriented programming? [5]


Q-13 Elaborate any two uses of ‘this’ keyword in object oriented
programming.

Q-14 How is method overloading achieved in object oriented programming?


Explain with an example. [5]

Q-15 Identify classes, objects, and methods for adding two complex numbers
Q-16 Write a program demonstrating passing an object as a parameter to a
method. [5]

Q-17 What are the characteristics of static variables and methods? Explain
with an example.
Q-18 Explain the features of object-oriented programming with examples. [5]

Q-19 Difference between static binding and late binding. [5]

Q-20 Write a program in Java to check whether the given number is palindrome
or not. [5]

Q-21 Explain the four pillars of object- oriented programming with an


example. [5]

Q-22 Difference between object- oriented programming and procedural oriented


programming. [5]

Q-23 Write a program in Java to check whether the given number is even or
odd. [5]

Q-24 What are the different access modifiers? Explain its scope with a suitable
example. [5]

Q-25 What is the need for using “this” pointer? How do we access the variables
using “this” pointer? [5]

Q-26 Explain the concept of memory allocation and de- allocation with respect
to OOP. [5]

Q-27 Explain the concept of Class as an Abstract Data Type. [5]


Q-28 How do we use the static variables and static functions in the
class?Explain with a suitable example. [5]

Q-29 Why do we need method overloading? Write a program to demonstrate


method overloading.
Q-30 What is Constructor? What are the characteristics of the Constructor?
Explain Constructor Overloading with an example? [9]
Q-31 Write a short note on : [9]
i) Garbage collection in Java
ii) Destructor in C++

Q-32 Design a class ‘Complex’ with data members for real and imaginary
part. Provide default and Parameterized constructors. Write a program
in JAVA to perform a Subtraction of two complex numbers. [9]

Q-33 Discuss with example Dynamic initialization of object in Java. [9]

Q-34 Define Inheritance. What are the types of Inheritance? How can you
inherit a class in Java? [9]

Q-35 What is polymorphism? Explain compile time and run time


polymorphism.[8]

Q-36 Differentiate between method overriding and method overloading. Explain


method overriding concept with an example

Q-37 Discuss Constructor Overloading with suitable code. [9]

Q-38 How are objects initialized dynamically? Explain with an example. [9]

Q-39 What is garbage collection in OOP? Explain finalize() method in Java.[9]


Q-40 Define a class ‘shape’ with abstract method compute_area(). Derive the
classes ‘circle’ and ‘rectangle’ from ‘shape’ class. Calculate the area of
circle and rectangle using Dynamic Binding. Use appropriate instance
variables and methods whenever necessary. [9]

Q-41 Define Polymorphism? Differentiate between Compile Time Polymorphism


and Run Time Polymorphism with an example. [8]
Q-42 With suitable code segments illustrate various uses of ‘final’ keyword.[9]

Q-43 What are the characteristics of Destructor? How is Destructor declared


in OOP? Demonstrate with an example. [9]

Q-44 Write a program which demonstrate constructor with default arguments.[9]

Q-45 Enlist the benefits and costs of Inheritances. [8]

Q-46 How parameterized constructors get executed in multilevel inheritance?


Explain with an example? [9]

Q-47 Define polymorphism? What are the types of Polymorphism? How can
be run time polymorphism achieved in OOP? [8]

Q-48 Define exception. What are its types? Discuss exception handling
mechanism in detail. [9]

Q-49 What is Generic programming? Discuss any four methods of ArrayList


class with their syntax. [9]

Q-45 Is there any difference between throw and throws in exception handling
in Java? If ‘yes’, justify your answer. [9]

Q-46 How basic mathematical set operations union, intersection, and subset
are performed using set interface? [9]

Q-47 What is a design pattern? Write a short note on ‘Singleton’ design pattern.[9]

Q-48 Write program to handle primitive data types in file handling. [8]

Q-49 How do you write to a file and read from a file using File Writer and
FileReader class, respectively? [8]

Q-50 What are the advantages of design patterns? Explain ‘Adaptor’ design
pattern in detail. [9]

You might also like