0% found this document useful (0 votes)
5 views

vedanti oops imp

The document outlines key concepts and exercises related to Object-Oriented Programming in Java, including program execution steps, control statements, and basic programming tasks such as swapping numbers and calculating sums. It also covers important topics like type conversion, constructors, method overloading, inheritance, and exception handling. Additionally, it explains abstract classes, interfaces, and the differences between procedural and object-oriented languages.

Uploaded by

Atharv Nasare
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

vedanti oops imp

The document outlines key concepts and exercises related to Object-Oriented Programming in Java, including program execution steps, control statements, and basic programming tasks such as swapping numbers and calculating sums. It also covers important topics like type conversion, constructors, method overloading, inheritance, and exception handling. Additionally, it explains abstract classes, interfaces, and the differences between procedural and object-oriented languages.

Uploaded by

Atharv Nasare
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

OBJECT ORIENTED PROGRAMMING

Unit-1
1.Explain steps for executing java programs?What are the source
code and byte code in java .

2.Write for,do-while,and while statement to compute the following


sum 4+8+12+16+......+80.

3.Write an application program in java to swap two numbers using


third variables.

4.Write a java program to print the square of first 10 even


numbers.

5.Differentiate between procedural language and object-oriented


language.

6.Explain type conversion and casting with example.

7.Why java is known as platform independent language.

8.What is the purpose of ‘this’ keyword? Explain with suitable


example.

9.What is constructor?Write java application which demonstrates


the concept of constructor overloading .

10.Explain following terms with example.

i) Local variable ii)Instance variable iii)Class variable

11.What is method overloading?Write a java program to


demonstrate overloading.

12.Write a class student having data members name,roll no and


branch of student. Declare one constructor to initialize above data
members and one display()method to display the information of a
single student.
Unit-2
1. Explain abstract class with example.
2. What are packages?How are they created.Explain with
example.
3. What is inheritance?explain multilevel inheritance with
example.
4. Write a java program that handles multiple exception.
5. Explain checked and unchecked exception and listout them.
6. What is method override?Explain with example.
7. What is exception explain various technique.
8. What is an interface.Explain with example also differentiate
it with abstract class

You might also like