You are on page 1of 1

Microlink

Information Technology and Business College


Department of Computer science and Software Engineering
Assignment: Introduction to object-oriented programming
Submission date: 14/05/2016 E.C
General Instructions: Copying from the handout is strictly forbidden please try to address
these questions out of the handout on your hand.
1. Discuss on the advantages and disadvantages of Object Oriented Programming.

2. What are the different forms of inheritance? Explain with examples.

3. What is an array? How arrays are declared and initialized? Explain with examples

4. Write a Java program to print the area and perimeter of a rectangle.

5. What is constructor? What are the rules of constructor? Give an example.

6. What is constructor overloading? Explain with examples.

7. What are the drawbacks of procedural languages? Explain the need of object-oriented

Programming with suitable program.

8. What is the difference between a class and interface? Write a program in java to illustrate

the implementation of multiple inheritance through interfaces.

9. What is Exception? What is the difference between exception and error? Give examples. And

what are different types of exceptions? What is runtime stack mechanism in Exception?

10. What is the difference between multithreading and multiprocessing?

11. . What is a package and java API package? What is user defined package? Write a syntax

to access the package in java?

12. What is the use of java.io and java.util (collection framework) packages?

You might also like