OBJECT-ORIENTED PROGRAMMING THROUGH JAVA

 NOTES

UNIT - 1               UNIT - 2         UNIT - 3        UNIT - 4         UNIT - 5

UNIT WISE Q&A

UNIT - 1              UNIT - 2

Exercise 1:

 

Exercise  2:

 a)  Write a JAVA program to search for an element in a list of elements using binary search

 b)  Write a JAVA program to sort for an element in a given list of elements using bubble sort

c)  Write a JAVA program using StringBuffer to delete, remove character.

 

Exercise  3:

a)  Write a JAVA program to implement class mechanism. Create a class, methods and invoke them inside main method

b) Write a JAVA program implement method overloading

c) Write a JAVA program to implement constructor.

d) Write a JAVA program to implement constructor overloading.

 

Exercise  4:

a) Write a JAVA program to implement Single Inheritance 

b) Write a JAVA program to implement multi level Inheritance 

c) Write a JAVA program for abstract class to find areas of different shapes    

 


Exercise  5:

a)  Write a JAVA program give example for “super” keyword.

b)  Write a JAVA program to implement Interface. What kind of Inheritance can be achieved?

c)  Write a JAVA program that implements Runtime polymorphism

 

Exercise  6:

 

a)  Write a JAVA program that describes exception handling mechanism

b)  Write a JAVA program Illustrating Multiple catch clauses

c)  Write a JAVA program for creation of Java Built-in Exceptions

d) Write a JAVA program for creation of User Defined Exception

 

 Exercise  7: