https://github.com/samuela31/oops-laboratory
OOPS using Java lab exercises done during semester 4 in college
https://github.com/samuela31/oops-laboratory
applet java java-8 java-applet jdbc jdbc-driver lab-exercises oops oops-in-java
Last synced: 5 months ago
JSON representation
OOPS using Java lab exercises done during semester 4 in college
- Host: GitHub
- URL: https://github.com/samuela31/oops-laboratory
- Owner: Samuela31
- Created: 2025-06-14T05:45:14.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-06-16T12:30:34.000Z (6 months ago)
- Last Synced: 2025-06-21T18:11:40.711Z (6 months ago)
- Topics: applet, java, java-8, java-applet, jdbc, jdbc-driver, lab-exercises, oops, oops-in-java
- Language: Java
- Homepage:
- Size: 205 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OOPS Laboratory
Contains object oriented programming (OOP) lab exercises done in college using Java. Table of contents:
- Lab 1: Class
- Lab 2: Constructor and Constructor Overloading
- Lab 3: Interface
- Lab 4: Inheritance
- Lab 5: String Methods
- Lab 6: Exception Handling
- Lab 7: Packages and Modularity
- Lab 8: Threads
- Lab 9: Applet
- Lab 10: JDBC
## Lab 1: Class
Using class [fibo](https://github.com/Samuela31/OOPS-Laboratory/blob/main/fibo.java) in Java, print first n terms of Fibonacci series using loops.

## Lab 2: Constructor and Constructor Overloading
Using class [box](https://github.com/Samuela31/OOPS-Laboratory/blob/main/box.java) in Java, demonstrate constructor and constructor overloading concept with total surface area and volume of a box.

## Lab 3: Interface
Using class [Testinterface](https://github.com/Samuela31/OOPS-Laboratory/blob/main/Testinterface.java) in Java, demonstrate interface concept via basic calculator functions.

## Lab 4: Inheritance
Using class [TestInheritance](https://github.com/Samuela31/OOPS-Laboratory/blob/main/TestInheritance.java) in Java, demonstrate inheritance concept between classes via basic hospital patient details like vaccine status, age, gender, etc. CLASS file is created for each class in TestInheritance.java
## Lab 5: String Methods
Using class [stringmethods](https://github.com/Samuela31/OOPS-Laboratory/blob/main/stringmethods.java) in Java, demonstrate string concepts like string reversal, character deletion, insertion, substitution, and index finding using String Buffer.

## Lab 6: Exception Handling
Using class [library](https://github.com/Samuela31/OOPS-Laboratory/blob/main/library.java), implement library system for checking book availability for online lending with exception and error handling in Java.
## Lab 7: Packages and Modularity
Using main class [hotel](https://github.com/Samuela31/OOPS-Laboratory/blob/main/Lab%207/hotel.java) in Java, implement hotel room booking system for customers via various room types differentiated into different classes like single room, double sharing, etc and demonstrate packages concept and modularity of code.
## Lab 8: Threads
Using programs [Bank](https://github.com/Samuela31/OOPS-Laboratory/blob/main/Bank.java) and [Matrix](https://github.com/Samuela31/OOPS-Laboratory/blob/main/Matrix.java) in Java, demonstrate thread concept via simple implementation of bank system and matrix printing.
## Lab 9: Applet
Using class [Message](https://github.com/Samuela31/OOPS-Laboratory/blob/main/Lab%209/Message.java) in Java, demonstrate Applet for displaying simple message. Another Applet implementation is [TrafficLightApplet](https://github.com/Samuela31/OOPS-Laboratory/blob/main/Lab%209/TrafficLightApplet.java) for displaying traffic light with text signal display.
## Lab 10: JDBC
Using class [jdbc10](https://github.com/Samuela31/OOPS-Laboratory/blob/main/jdbc10.java) in Java, demonstrate JDBC (Java Database Connectivity) concept with Oracle SQL database and perform insertion, deletion, and display actions of student details stored in table.