OOPJ Question Bank
OOPJ Question Bank
Chapter – 3
1) Define/Explain Class and object with example.
2) Explain different types of constructor with example.
3) Explain Method Overloading with suitable example. (4/7 Marks)
4) Explain Constructor overloading with suitable example. (7 Marks)
5) Explain final and this keyword with example. (GTU Dec-2011) (7 Marks)
6) Explain the final variable, final method, final class and finalizes method.
7) What is command Line argument? Write a program to sort the numbers in ascending
order, entered by using the command line argument.
8) Explain scope of variables in java.
9) Explain Garbage Collection and finalize() method
10) What is constructor? Write properties of constructor.
11) What is constructor? Write its properties and make a program using constructor to
implement multilevel inheritance
Chapter – 4
1) Explain the difference between abstract class and final class.
2) What is Inheritance? Explain the different forms of Inheritance with example.
3) Explain the use of super keyword.
4) Explain Abstract class with suitable example.
5) Explain Method Overloading and Method Overriding with suitable example.
6) What is Inheritance? Explain multilevel hierarchy Inheritance with Example.
7) Explain visibility controls of java.
8) Give difference between method overloading & overriding.
Chapter – 5 & 6
1) List out the different important Java Packages and explain it.
2) Discuss the similarities and differences between Class and Interface with example.
3) What is Package? Write the steps to create the package with example.
4) What is package? Explain with suitable example.
5) What is interface? Explain with suitable example.
6) What is Vector? How it differs from the array? Explain array and vector with example.
7) Explain vector class with their methods.
Chapter – 7 & 8
1) Differentiate between exception and error? Explain exception handling in Java.
2) What is Exception? Explain try-throw-catch-finally with suitable example.
3) What is an Exception? How it can be handled in java? Write a program that demonstrates
the use of exception handling statement.
4) What is Exception? Explain all Exception of java.
Chapter - 9
1) What is Thread? Explain the Life Cycle of a Thread.
2) Explain with suitable example suspend (), resume () and stop () methods of Thread class.
3) Explain isAlive( ) and Join( ) methods of thread.
4) Write short note : Synchronization
5) What is synchronization? Explain thread priorities with suitable example.
Chapter – 10