Oops Set 2
Oops Set 2
Third Semester
(Regulations 2021)
(i) Creation of a simple package (ii) Accessing a package (ii) Implementing interfaces
2. Write a Java program to perform the following operations:
(i) Insert an element into a binary search tree.
(ii) Delete an element from a binary search tree.
(iii) Search for a key element in a binary search tree.
Page 1 of 4
5. Write Java programs to implement the following using a singly linked list
(a) Stack ADT(b) Queue ADT
Implement a Java program to implement the following using classes and objects
(a) Stack ADT(b) Queue ADT
Develop a java code to implement a Bank Application that manages deposits, account
balances, and withdrawals by using the inheritance concept.
7. Write a java program that implements a multi-threaded application that has three threads.
The first thread generates a random integer every second and if the value is even, the second
thread computes the square of the number and prints. If the value is even, the third thread
will print the value of the cube of the number.
8. Implement a program to perform file operations i) new File creation, ii) retrieve file the
properties (information about the file) iii) File read and write.
9. Implement a code to demonstrate the features of i) generics class ii) generics method
11. Develop applications using JavaFX UI controls i) Radio Button ii) Checkbox
12. Develop applications using JavaFX UI controls i) Text Field ii) Password
Page 2 of 4
16. Implement a Java Program to create an abstract class named Shape that contains two integers
and an empty method named printArea (). Provide three classes named Rectangle, Triangle,
and Circle such that each one of the classes extends the class Shape. Each one of the classes
contains only the method printArea () that prints the area of the given shape.
17. Implement a Java Program to create an abstract class named Shape that contains two integers
and an empty method named printArea (). Provide three classes named Rectangle, Triangle,
and Circle such that each one of the classes extends the class Shape. Each one of the classes
contains only the method printArea() that prints the area of the given shape by using an interface.
Page 3 of 4
Page 4 of 4