CS8383 OOPS Lab SET
CS8383 OOPS Lab SET
Fifth Semester
1. Design a Java interface for ADT Stack. Implement this interface using array.Display the
result for the following input 3,4,5,9,77 and print the output.
2. Write a program to perform string operations using Array List. Write functions for the following
a. Append – add at end
b. Insert – add at index 2
c. Search
d. List all string starts with given letter
Aim and Program Calculation & Results Viva-Voce Record Total
Procedure
10 40 30 10 10 100
3. Write a Java program to implement user defined exception handling. Display the result
for the following input a=1, b=0 perform c=a/b.
6. Develop a java application with Employee class with Emp_name, Emp_id, Address,
Mail_id, Mobile_no as members. Inherit the classes, Programmer, Assistant Professor,
Associate Professor and Professor from employee class. Add Basic Pay (BP) as the
member of all the inherited classes with 97% of BP as DA, 10 % of BP as HRA, 12% of
BP as PF, 0.1% of BP for staff club fund. Generate pay slips for the employees with their
gross and net salary.
7. To Write a Java Program to create an abstract class named sumOfTwo and sum of
Three. Perform addition of two numbers and addition of three numbers
Aim and Program Calculation & Results Viva-Voce Record Total
Procedure
10 40 30 10 10 100
8. 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.
9. Create a new class which implements java.lang.Runnable interface and override run()
method. Perform multithreading operation.
10. Design a calculator using event-driven programming paradigm of Java with Decimal
manipulations.
12. Write a Java program for implementing producer consumer problem using Inter-thread
communication.
14. Write a java program to insert an element into an array and reverse an array using
packages.
15. Write a program to exhibit simple inheritance, multilevel inheritance and hybrid
inheritance concepts.