OOPs Lab Question Bank
OOPs Lab Question Bank
Question Bank
4. Develop stack and queue data structures using classes and objects.
5. Develop a java application with an employee class with members for generate pay
Slip using inheritance.
6. Write a java program to create abstract class for calculating area of different shape.
7. Write a java program to create interface for calculating area of different shape.
10. write a java program that reads a file name from the user, displays information about
whether the file exists, whether the file is readable, or writable, the type of file and the
length of the file in bytes.
12. Design a calculator as a mini project using event driven programming paradigm of
java with the following options a) Decimal Manipulations b) Scientific Manipulations.
13. Develop queue data structures using classes and objects.
14. Write a Java Program to create an abstract class named sum of Two and sum of Three.
Perform addition of two numbers and addition of three numbers
16. Write a Java program to find the sum value of two given type of elements using a generic
class.
17. Write a java program that implements a multithread application that has three threads. First
thread generates random integer every one second and if the value is odd, second thread
computes the square of the number and prints the value is even, the third will print the
cube of the number.
18. Create a Java Application to calculate GPA for 5 subjects using the marks of the subject
and credits of the subject and implement a user defined exception for subject mark, credits,
subject name, and subject code.
19. Write Java programs to implementing Arithmetic exception and implementing Array
IndexOutOfBound exception.
20. Write a Java program that keeps a number from the user and generates an integer
between 1 and 12 and displays the name of the month.
4. Develop stack and queue data structures using classes and objects.
5. Develop a java application with an employee class with members for generate pay
Slip using inheritance.
6. Write a java program to create abstract class for calculating area of different shape.
7. Write a java program to create interface for calculating area of different shape.
10. write a java program that reads a file name from the user, displays information about
whether the file exists, whether the file is readable, or writable, the type of file and the
length of the file in bytes.
14. Write a Java Program to create an abstract class named sum of Two and sum of Three.
Perform addition of two numbers and addition of three numbers
16. Write a Java program to find the sum value of two given type of elements using a generic
class.
17. Write a java program to illustrate usage of try/catch with finally clause.
20. a) Write a program to give the example for method overriding concepts.