OBJECT ORIENTED PROGRAMMING USING JAVA LAB
1. Write a program to implement Package with classes (Use previously
created class) and import them into another program.
2. Write a JAVA program which has
a. A Class called Account that creates account with 500Rs 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 500Rs.
b. A Class called LessBalanceException which returns the statement that
says withdraw amount (___Rs) is not valid.
c. A Class which creates 2 accounts, both accountdepositmoney and one
account tries to with draw more money which generates a
LessBalanceException take appropriate action for the same.
3. Write a Java Program to manipulate array numbers with operations
(Adding, Deleting, Updating) using exception handling (Using Nested try
catch and finally).
4. Write a Java Program to print digital clock using Threads and Exceptions
5. Write a program to implement Package with classes (Use previously
created class) and import them into another program
6. Develop dynamic web application to display current system date and time
using servlets.
7. Develop dynamic web application to display login page with proper HTML
UI elements using servlets.
8. Implement a servlet to authenticate login details, which is created
previously (user name and password should be accepted using HTML and
displayed using a Servlet)
9. Write JSP program to implement custom tag with name <product>, which
display product (prodId, name, category, price) details
1
10. Enhance previous JSP program to fetch data from database
11. Develop Hibernate application to manage operations like insert and
display from database 12. Develop a simple Web Application using Spring