An open API service indexing awesome lists of open source software.

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

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.

![op1](https://github.com/Samuela31/OOPS-Laboratory/blob/main/oops%20lab%201%20output.png)

## 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.

![op2](https://github.com/Samuela31/OOPS-Laboratory/blob/main/oops%20lab%202%20output.png)

## 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.

![op3](https://github.com/Samuela31/OOPS-Laboratory/blob/main/oops%20lab%203%20output.png)

## 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.

![op5](https://github.com/Samuela31/OOPS-Laboratory/blob/main/oops%20lab%205%20output.png)

## 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.