0% found this document useful (0 votes)
5 views2 pages

Object Oriented Programming Using Java Lab

The document outlines a series of programming tasks focused on Object-Oriented Programming using Java. It includes creating classes for account management with exception handling, implementing packages, developing web applications using servlets and JSP, and managing database operations with Hibernate and Spring. The tasks emphasize practical implementations of Java concepts and web technologies.

Uploaded by

madanmadhu818
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views2 pages

Object Oriented Programming Using Java Lab

The document outlines a series of programming tasks focused on Object-Oriented Programming using Java. It includes creating classes for account management with exception handling, implementing packages, developing web applications using servlets and JSP, and managing database operations with Hibernate and Spring. The tasks emphasize practical implementations of Java concepts and web technologies.

Uploaded by

madanmadhu818
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

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

You might also like