Java Index

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

INDEX

SL.N DATE PROGRAM DESCRIPTION PAGE


O NUMBER
1 01/08/2022 Write a JAVA program to demonstrate Constructor 1-4
Overloading and Method Overloading.
2 01/08/2022 Write a JAVA program to implement Inner class and 5-6
demonstrate its Access protection.
3 01/08/2022 Write a program in Java for String handling which 7-9
performs the following:
a. Checks the capacity of String Buffer objects.
b. Reverses the contents of a string given on console
and converts the resultant string in upper case.
c. Reads a string from console and appends it to the
resultant string of (ii).
4 08/08/2022 Write a JAVA program which has: 10-15
a. A Class called Account that creates account with
Rs. 500 minimum balance, a deposit() method to
deposit amount, a withdraw() method to withdraw
amount and also throws LessBalanceException if an
account holder tries to withdraw money which
makes the balance become less than Rs. 500.
b. A Class called Less_Balance_Exception which
returns the statement that says withdraw amount
(Rs.) is not valid.
c. A Class which creates 2 accounts, both account
deposit money and one account tries to withdraw
more money which generates a Less Balance
Exception take appropriate action for the same.
5 08/08/2022 Write JAVA programs which demonstrate utilities of 16-20
Linked List Class.
6 08/08/2022 Write a JAVA program to create an enumeration 21-22
Day of Week with seven values SUNDAY through
SATURDAY. Add a method isWorkday() to the
DayofWeek class that returns true if the value on
which it is called is MONDAY through FRIDAY.
For example, the call
DayOfWeek.SUNDAY.isWorkDay () returns false.
7 22/08/2022 Write a JAVA program to demonstrate Inheritance. 23-25
Simple Program on Java for the implementation of
Multiple inheritance using interfaces to calculate the
area of a rectangle and triangle.
8 22/08/2022 Write a JAVA program to implement a Queue using 26-30
user defined Exception Handling (also make use of
throw, throws).
9 22/08/2022 Write a JAVA program using Synchronized Threads, 31-33
which demonstrates Producer Consumer concept.
10 29/08/2022 Write a java program to complete the following: 34-36
a. Create a package named shape.
b. Create some classes in the package representing
some common shapes like Square, Triangle, and
Circle.
c. Import and compile these classes in other
program.
11 29/08/2022 Write a JAVA program which has: 37-41
a. An Interface class for Stack Operations
b. A Class that implements the Stack Interface and
creates a fixed length Stack.
c. A Class that implements the Stack Interface and
creates a Dynamic length Stack.
d. A Class that uses both the above Stacks through
Interface reference and does the Stack
e. Operations that demonstrates the runtime binding.
12 29/08/2022 Write a JAVA program which uses 41-45
FileInputStream / FileOutPutStream Classes.

You might also like